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

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