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

git-svn-id: https://develop.svn.wordpress.org/trunk@19872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-02-08 16:15:24 +00:00
parent 0c751dd7a3
commit 51ded65294
1 changed files with 1 additions and 1 deletions

View File

@ -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 );