From a0b0149065dde101af9652b8071623afc7c6abb5 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 8 Feb 2012 16:15:24 +0000 Subject: [PATCH] Coverage for load-scripts.php. fixes #19959. git-svn-id: http://svn.automattic.com/wordpress/trunk@19872 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class.wp-scripts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );