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:
parent
0c751dd7a3
commit
51ded65294
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue