Coverage for load-scripts.php. fixes #19959.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-02-08 16:15:24 +00:00
parent bfeb575df9
commit a0b0149065
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class WP_Scripts extends WP_Dependencies {
var $default_dirs; var $default_dirs;
function __construct() { function __construct() {
if ( did_action( 'init' ) ) if ( ! function_exists( 'did_action' ) || did_action( 'init' ) )
$this->init(); $this->init();
else else
add_action( 'init', array( $this, 'init' ), 0 ); add_action( 'init', array( $this, 'init' ), 0 );