diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/functions.wp-scripts.php --- a/wp/wp-includes/functions.wp-scripts.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/functions.wp-scripts.php Tue Sep 27 16:37:53 2022 +0200 @@ -166,7 +166,7 @@ * as a query string for cache busting purposes. If version is set to false, a version * number is automatically added equal to current installed WordPress version. * If set to null, no version is added. - * @param bool $in_footer Optional. Whether to enqueue the script before
instead of in the
. + * @param bool $in_footer Optional. Whether to enqueue the script before `` instead of in the `
`. * Default 'false'. * @return bool Whether the script has been registered. True on success, false on failure. */ @@ -186,7 +186,7 @@ /** * Localize a script. * - * Works only if the script has already been added. + * Works only if the script has already been registered. * * Accepts an associative array $l10n and creates a JavaScript object: * @@ -224,7 +224,7 @@ /** * Sets translated strings for a script. * - * Works only if the script has already been added. + * Works only if the script has already been registered. * * @see WP_Scripts::set_translations() * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts. @@ -258,7 +258,7 @@ * * @since 2.1.0 * - * @global string $pagenow + * @global string $pagenow The filename of the current screen. * * @param string $handle Name of the script to be removed. */ @@ -340,7 +340,7 @@ * as a query string for cache busting purposes. If version is set to false, a version * number is automatically added equal to current installed WordPress version. * If set to null, no version is added. - * @param bool $in_footer Optional. Whether to enqueue the script before instead of in the
. + * @param bool $in_footer Optional. Whether to enqueue the script before `` instead of in the `
`. * Default 'false'. */ function wp_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $in_footer = false ) { @@ -402,7 +402,7 @@ /** * Add metadata to a script. * - * Works only if the script has already been added. + * Works only if the script has already been registered. * * Possible values for $key and $value: * 'conditional' string Comments for IE 6, lte IE 7, etc.