|
@@ -80,7 +80,7 @@ discard block |
|
|
block discarded – undo |
|
80
|
80
|
'units' => '', |
|
81
|
81
|
'js_callback' => array( '', '' ), |
|
82
|
82
|
'value_pattern' => '', |
|
83
|
|
- )); |
|
|
83
|
+ ) ); |
|
84
|
84
|
|
|
85
|
85
|
// Element should be a string. |
|
86
|
86
|
if ( is_array( $args['element'] ) ) { |
|
@@ -114,8 +114,8 @@ discard block |
|
|
block discarded – undo |
|
114
|
114
|
$value .= '+' . $args['units'] . $args['suffix']; |
|
115
|
115
|
} |
|
116
|
116
|
$scripts_array = array(); |
|
117
|
|
- $scripts_array[ sanitize_key( $args['element'] ) ][ sanitize_key( $args['property'] ) ]['script'] = $property_script . $script; |
|
118
|
|
- $scripts_array[ sanitize_key( $args['element'] ) ][ sanitize_key( $args['property'] ) ]['css'] = $args['element'] . '{' . $args['property'] . ':\'+' . $value_key . '+\';}'; |
|
|
117
|
+ $scripts_array[sanitize_key( $args['element'] )][sanitize_key( $args['property'] )]['script'] = $property_script . $script; |
|
|
118
|
+ $scripts_array[sanitize_key( $args['element'] )][sanitize_key( $args['property'] )]['css'] = $args['element'] . '{' . $args['property'] . ':\'+' . $value_key . '+\';}'; |
|
119
|
119
|
|
|
120
|
120
|
return $scripts_array; |
|
121
|
121
|
} |
|
@@ -138,7 +138,7 @@ discard block |
|
|
block discarded – undo |
|
138
|
138
|
// Loop through the js_vars and generate the script. |
|
139
|
139
|
foreach ( $args['js_vars'] as $key => $js_var ) { |
|
140
|
140
|
$js_var['index_key'] = $key; |
|
141
|
|
- $field['scripts'][ $key ] = $this->_script( $js_var ); |
|
|
141
|
+ $field['scripts'][$key] = $this->_script( $js_var ); |
|
142
|
142
|
} |
|
143
|
143
|
$combo_extra_script = ''; |
|
144
|
144
|
$combo_css_script = ''; |
Please login to merge, or discard this patch.