Make WordPress Core

Ticket #20971: 20971.diff

File 20971.diff, 527 bytes (added by nacin, 13 years ago)
  • wp-includes/class.wp-scripts.php

     
    3131        var $default_dirs;
    3232
    3333        function __construct() {
    34                 if ( ! function_exists( 'did_action' ) || did_action( 'init' ) )
    35                         $this->init();
    36                 else
    37                         add_action( 'init', array( $this, 'init' ), 0 );
     34                $this->init();
     35                add_action( 'init', array( $this, 'init' ), 0 );
    3836        }
    3937
    4038        function init() {