Skip to content

Commit bc92258

Browse files
committed
fixes #140
1 parent 556c23d commit bc92258

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/field/class-kirki-field-editor.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct( $config_id = 'global', $args = array() ) {
3333
parent::__construct( $config_id, $args );
3434

3535
// Add the editor.
36-
add_action( 'customize_controls_print_footer_scripts', array( $this, 'add_editor' ) );
36+
add_action( 'customize_controls_print_footer_scripts', array( __CLASS__, 'add_editor' ) );
3737

3838
}
3939

@@ -67,9 +67,10 @@ protected function set_sanitize_callback() {
6767
/**
6868
* Adds the global textarea
6969
*
70+
* @static
7071
* @access public
7172
*/
72-
public function add_editor() {
73+
public static function add_editor() {
7374
wp_enqueue_script( 'tiny_mce' );
7475

7576
echo '<div id="kirki_editor_pane" class="hide">';

0 commit comments

Comments
 (0)