Skip to content

Commit cfa2d7e

Browse files
committed
spacing, dimension, and border fields not saving changed values.
1 parent 9c94a4c commit cfa2d7e

File tree

9 files changed

+17
-15
lines changed

9 files changed

+17
-15
lines changed

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== Redux Framework ===
22
Contributors: kprovance, dovyp, redux
3-
Tags: admin, admin interface, options, theme options, plugin options, options framework, settings, web fonts, google fonts, metaboxes, settings
3+
Tags: admin, options, theme options, plugin options, options framework
44
Requires at least: 5.0
55
Requires PHP: 7.1
66
Tested up to: 6.5

redux-core/assets/css/redux-fields.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/assets/css/redux-fields.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/assets/js/redux.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/inc/fields/border/class-redux-border.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function render() {
120120
<span class="add-on">
121121
<i class="el el-arrow-up icon-large"></i>
122122
</span>
123-
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-top" class="redux-border-top redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Top', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-top" value="' . esc_attr( $this->value['top'] ) . '">
123+
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-top" class="redux-border-top redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Top', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-top-hidden" value="' . esc_attr( $this->value['top'] ) . '">
124124
</div>';
125125
}
126126

@@ -132,7 +132,7 @@ public function render() {
132132
<span class="add-on">
133133
<i class="el el-arrow-right icon-large"></i>
134134
</span>
135-
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-right" class="redux-border-right redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Right', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-right" value="' . esc_attr( $this->value['right'] ) . '">
135+
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-right" class="redux-border-right redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Right', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-right-hidden" value="' . esc_attr( $this->value['right'] ) . '">
136136
</div>';
137137
}
138138

@@ -144,7 +144,7 @@ public function render() {
144144
<span class="add-on">
145145
<i class="el el-arrow-down icon-large"></i>
146146
</span>
147-
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-bottom" class="redux-border-bottom redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Bottom', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-bottom" value="' . esc_attr( $this->value['bottom'] ) . '">
147+
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-bottom" class="redux-border-bottom redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Bottom', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-bottom-hidden" value="' . esc_attr( $this->value['bottom'] ) . '">
148148
</div>';
149149
}
150150

@@ -156,7 +156,7 @@ public function render() {
156156
<span class="add-on">
157157
<i class="el el-arrow-left icon-large"></i>
158158
</span>
159-
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-left" class="redux-border-left redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Left', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-left" value="' . esc_attr( $this->value['left'] ) . '">
159+
<input type="text" id="' . esc_attr( $this->field['id'] ) . '-left" class="redux-border-left redux-border-input mini ' . esc_attr( $this->field['class'] ) . '" placeholder="' . esc_html__( 'Left', 'redux-framework' ) . '" rel="' . esc_attr( $this->field['id'] ) . '-left-hidden" value="' . esc_attr( $this->value['left'] ) . '">
160160
</div>';
161161
}
162162
}

redux-core/inc/fields/content/redux-content.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/inc/fields/dimensions/class-redux-dimensions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function render() {
143143
id="' . esc_attr( $this->field['id'] ) . '-width"
144144
class="redux-dimensions-input redux-dimensions-width mini ' . esc_attr( $this->field['class'] ) . '"
145145
placeholder="' . esc_html__( 'Width', 'redux-framework' ) . '"
146-
rel="' . esc_attr( $this->field['id'] ) . '-width"
146+
rel="' . esc_attr( $this->field['id'] ) . '-width-hidden"
147147
value="' . esc_attr( filter_var( $this->value['width'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION ) ) . '">';
148148

149149
echo '<input
@@ -173,7 +173,7 @@ class="redux-dimensions-input redux-dimensions-width mini ' . esc_attr( $this->f
173173
id="' . esc_attr( $this->field['id'] ) . '-height"
174174
class="redux-dimensions-input redux-dimensions-height mini ' . esc_attr( $this->field['class'] ) . '"
175175
placeholder="' . esc_html__( 'Height', 'redux-framework' ) . '"
176-
rel="' . esc_attr( $this->field['id'] ) . '-height"
176+
rel="' . esc_attr( $this->field['id'] ) . '-height-hidden"
177177
value="' . esc_attr( filter_var( $this->value['height'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION ) ) . '">';
178178

179179
echo '<input

redux-core/inc/fields/dimensions/redux-dimensions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
'change',
3535
function() {
3636
var units = $( this ).parents( '.redux-field:first' ).find( '.field-units' ).val();
37+
3738
if ( 0 !== $( this ).parents( '.redux-field:first' ).find( '.redux-dimensions-units' ).length ) {
3839
units = $( this ).parents( '.redux-field:first' ).find( '.redux-dimensions-units option:selected' ).val();
3940
}
41+
4042
if ( 'undefined' !== typeof units ) {
4143
el.find( '#' + $( this ).attr( 'rel' ) ).val( $( this ).val() + units );
4244
} else {

0 commit comments

Comments
 (0)