diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index ceaaad565..039a4e3a1 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -31,7 +31,7 @@ class WP_Scripts extends WP_Dependencies { var $default_dirs; function __construct() { - if ( did_action( 'init' ) ) + if ( ! function_exists( 'did_action' ) || did_action( 'init' ) ) $this->init(); else add_action( 'init', array( $this, 'init' ), 0 );