From 51ded65294da87d06bca34c836ef905fb504e420 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 8 Feb 2012 16:15:24 +0000 Subject: [PATCH] Coverage for load-scripts.php. fixes #19959. git-svn-id: https://develop.svn.wordpress.org/trunk@19872 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ceaaad565a..039a4e3a1b 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 );