]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class.wp-scripts.php
WordPress 3.4.1
[autoinstalls/wordpress.git] / wp-includes / class.wp-scripts.php
index ff0ca4d5dc52cc164e89fdfb96bd5cda2bf35c6f..0ac2af4d9738299d830a5677281bb5579d2cfebd 100644 (file)
@@ -31,10 +31,8 @@ class WP_Scripts extends WP_Dependencies {
        var $default_dirs;
 
        function __construct() {
-               if ( ! function_exists( 'did_action' ) || did_action( 'init' ) )
-                       $this->init();
-               else
-                       add_action( 'init', array( $this, 'init' ), 0 );
+               $this->init();
+               add_action( 'init', array( $this, 'init' ), 0 );
        }
 
        function init() {