File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -922,6 +922,7 @@ public function _enqueue() {
922
922
923
923
wp_enqueue_script ('jquery ' );
924
924
wp_enqueue_script ('jquery-ui-core ' );
925
+ wp_enqueue_script ('jquery-ui-sortable ' );
925
926
add_thickbox ();
926
927
927
928
wp_register_style (
Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ function render(){
135
135
**/
136
136
137
137
if ( $ this ->field ['color ' ] != false ):
138
- echo '<input name=" ' . $ this ->args ['opt_name ' ] . '[ ' . $ this ->field ['id ' ] . '][border-color]" id=" ' . $ this ->field ['id ' ] . '-border" class="redux-border-color redux-color redux-color-init ' . $ this ->field ['class ' ] . '" type="text" value=" ' . $ value ['color ' ] . '" data-default-color=" ' . $ this ->field ['border-color ' ] . '" data-id=" ' .$ this ->field ['id ' ].'" /> ' ;
138
+ $ default = isset ( $ this ->field ['border-color ' ] ) ? $ this ->field ['border-color ' ] : "" ;
139
+ $ default = ( empty ( $ default ) && isset ( $ this ->field ['color ' ] ) ) ? $ this ->field ['color ' ] : "" ;
140
+ echo '<input name=" ' . $ this ->args ['opt_name ' ] . '[ ' . $ this ->field ['id ' ] . '][border-color]" id=" ' . $ this ->field ['id ' ] . '-border" class="redux-border-color redux-color redux-color-init ' . $ this ->field ['class ' ] . '" type="text" value=" ' . $ value ['color ' ] . '" data-default-color=" ' . $ default . '" data-id=" ' .$ this ->field ['id ' ].'" /> ' ;
139
141
endif ;
140
142
141
143
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ function render() {
119
119
}
120
120
121
121
function enqueue () {
122
- wp_enqueue_script ('jquery-ui-sortable ' );
123
122
wp_register_script ('options-sorter ' , ReduxFramework::$ _url . 'inc/fields/sorter/field_sorter.min.js ' , array (
124
123
'jquery ' ));
125
124
wp_register_style ('options-sorter ' , ReduxFramework::$ _url . 'inc/fields/sorter/field_sorter.css ' );
You can’t perform that action at this time.
0 commit comments