X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9c40b4d36daed9e28e48a5fe9205c32557195a4b..4f9d63e13cd8c6e275797c75b401b074b82937bc:/wp-includes/functions.wp-scripts.php diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index 0a60c968..f284435e 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -38,7 +38,12 @@ function wp_print_scripts( $handles = false ) { * Register new JavaScript file. * * @since r16 - * @see WP_Dependencies::add() For parameter information. + * @param string $handle Script name + * @param string $src Script url + * @param array $deps (optional) Array of script names on which this script depends + * @param string|bool $ver (optional) Script version (used for cache busting), set to NULL to disable + * @param bool (optional) Wether to enqueue the script before or before + * @return null */ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) { global $wp_scripts; @@ -56,7 +61,7 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f * Localizes only if script has already been added. * * @since r16 - * @see WP_Script::localize() + * @see WP_Scripts::localize() */ function wp_localize_script( $handle, $object_name, $l10n ) { global $wp_scripts; @@ -86,8 +91,8 @@ function wp_deregister_script( $handle ) { * Registers the script if src provided (does NOT overwrite) and enqueues. * * @since r16 - * @see WP_Script::add(), WP_Script::enqueue() -*/ + * @see wp_register_script() For parameter information. + */ function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) { global $wp_scripts; if ( !is_a($wp_scripts, 'WP_Scripts') )