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:
parent
bfeb575df9
commit
a0b0149065
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue