@@ -85,30 +85,30 @@ discard block |
||
85 | 85 | $min = $debug ? '' : '.min'; |
86 | 86 | |
87 | 87 | // if colorpicker |
88 | - if ( isset( $dependencies['wp-color-picker'] ) ) { |
|
88 | + if ( isset( $dependencies[ 'wp-color-picker' ] ) ) { |
|
89 | 89 | if ( ! is_admin() ) { |
90 | 90 | self::colorpicker_frontend(); |
91 | 91 | } |
92 | 92 | |
93 | - if ( isset( $dependencies['wp-color-picker-alpha'] ) ) { |
|
93 | + if ( isset( $dependencies[ 'wp-color-picker-alpha' ] ) ) { |
|
94 | 94 | self::register_colorpicker_alpha(); |
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | 98 | // if file/file_list |
99 | - if ( isset( $dependencies['media-editor'] ) ) { |
|
99 | + if ( isset( $dependencies[ 'media-editor' ] ) ) { |
|
100 | 100 | wp_enqueue_media(); |
101 | 101 | CMB2_Type_File_Base::output_js_underscore_templates(); |
102 | 102 | } |
103 | 103 | |
104 | 104 | // if timepicker |
105 | - if ( isset( $dependencies['jquery-ui-datetimepicker'] ) ) { |
|
105 | + if ( isset( $dependencies[ 'jquery-ui-datetimepicker' ] ) ) { |
|
106 | 106 | self::register_datetimepicker(); |
107 | 107 | } |
108 | 108 | |
109 | 109 | // if cmb2-wysiwyg |
110 | - $enqueue_wysiwyg = isset( $dependencies['cmb2-wysiwyg'] ) && $debug; |
|
111 | - unset( $dependencies['cmb2-wysiwyg'] ); |
|
110 | + $enqueue_wysiwyg = isset( $dependencies[ 'cmb2-wysiwyg' ] ) && $debug; |
|
111 | + unset( $dependencies[ 'cmb2-wysiwyg' ] ); |
|
112 | 112 | |
113 | 113 | // Enqueue cmb JS |
114 | 114 | wp_enqueue_script( self::$handle, CMB2_Utils::url( "js/cmb2{$min}.js" ), $dependencies, CMB2_VERSION, true ); |
@@ -231,8 +231,8 @@ discard block |
||
231 | 231 | ), |
232 | 232 | ); |
233 | 233 | |
234 | - if ( isset( self::$dependencies['code-editor'] ) && function_exists( 'wp_enqueue_code_editor' ) ) { |
|
235 | - $l10n['defaults']['code_editor'] = wp_enqueue_code_editor( array( |
|
234 | + if ( isset( self::$dependencies[ 'code-editor' ] ) && function_exists( 'wp_enqueue_code_editor' ) ) { |
|
235 | + $l10n[ 'defaults' ][ 'code_editor' ] = wp_enqueue_code_editor( array( |
|
236 | 236 | 'type' => 'text/html', |
237 | 237 | ) ); |
238 | 238 | } |