@@ -56,24 +56,24 @@ |
||
| 56 | 56 | $min = $debug ? '' : '.min'; |
| 57 | 57 | |
| 58 | 58 | // if colorpicker |
| 59 | - if ( ! is_admin() && isset( $dependencies['wp-color-picker'] ) ) { |
|
| 59 | + if ( ! is_admin() && isset( $dependencies[ 'wp-color-picker' ] ) ) { |
|
| 60 | 60 | self::colorpicker_frontend(); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // if file/file_list |
| 64 | - if ( isset( $dependencies['media-editor'] ) ) { |
|
| 64 | + if ( isset( $dependencies[ 'media-editor' ] ) ) { |
|
| 65 | 65 | wp_enqueue_media(); |
| 66 | 66 | self::output_js_templates(); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | // if timepicker |
| 70 | - if ( isset( $dependencies['jquery-ui-datetimepicker'] ) ) { |
|
| 70 | + if ( isset( $dependencies[ 'jquery-ui-datetimepicker' ] ) ) { |
|
| 71 | 71 | wp_register_script( 'jquery-ui-datetimepicker', CMB2_Utils::url( 'js/jquery-ui-timepicker-addon.min.js' ), array( 'jquery-ui-slider' ), CMB2_VERSION ); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | // if cmb2-wysiwyg |
| 75 | - $enqueue_wysiwyg = isset( $dependencies['cmb2-wysiwyg'] ) && $debug; |
|
| 76 | - unset( $dependencies['cmb2-wysiwyg'] ); |
|
| 75 | + $enqueue_wysiwyg = isset( $dependencies[ 'cmb2-wysiwyg' ] ) && $debug; |
|
| 76 | + unset( $dependencies[ 'cmb2-wysiwyg' ] ); |
|
| 77 | 77 | |
| 78 | 78 | // Enqueue cmb JS |
| 79 | 79 | wp_enqueue_script( self::$handle, CMB2_Utils::url( "js/cmb2{$min}.js" ), $dependencies, CMB2_VERSION, true ); |