if ( !
$guessurl ) { $guessed_url = true;
$guessurl =
wp_guess_url();
} $scripts->base_url =
$guessurl;
$scripts->content_url =
defined( 'WP_CONTENT_URL'
) ? WP_CONTENT_URL : '';
$scripts->default_version =
get_bloginfo( 'version'
);
$scripts->default_dirs = array
( '/wp-admin/js/', '/wp-includes/js/'
);
$scripts->
add( 'utils', "/wp-includes/js/utils
$suffix.js"
);
did_action( 'init'
) &&
$scripts->
localize( 'utils',
'userSettings',
array
( 'url' =>
(string) SITECOOKIEPATH,
'uid' =>
(string) get_current_user_id(),
'time' =>
(string) time(),
'secure' =>
(string) ( 'https' ===
parse_url( site_url(), PHP_URL_SCHEME
) ),
) );
$scripts->
add( 'common', "/wp-admin/js/common
$suffix.js", array
( 'jquery', 'hoverIntent', 'utils'
), false, 1
);