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() {
}
$this->print_extra_script( $handle );
- if ( !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
+ if ( !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
$src = $this->base_url . $src;
}