summaryrefslogtreecommitdiffstats
path: root/wp-includes/functions.wp-scripts.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/functions.wp-scripts.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.tar.xz
wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/functions.wp-scripts.php')
-rw-r--r--wp-includes/functions.wp-scripts.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php
index de13496..1be1822 100644
--- a/wp-includes/functions.wp-scripts.php
+++ b/wp-includes/functions.wp-scripts.php
@@ -11,10 +11,10 @@
/**
* Initializes $wp_scripts if it has not been set.
*
- * @global WP_Scripts $wp_scripts
- *
* @since 4.2.0
*
+ * @global WP_Scripts $wp_scripts
+ *
* @return WP_Scripts WP_Scripts instance.
*/
function wp_scripts() {
@@ -77,10 +77,10 @@ function _wp_scripts_maybe_doing_it_wrong( $function_name, $handle = '' ) {
* hook to register/enqueue new scripts.
*
* @see WP_Scripts::do_item()
- * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
- *
* @since 2.1.0
*
+ * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
+ *
* @param string|string[]|false $handles Optional. Scripts to be printed. Default 'false'.
* @return string[] On success, an array of handles of processed WP_Dependencies items; otherwise, an empty array.
*/
@@ -234,11 +234,11 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
* 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.
- *
* @since 5.0.0
* @since 5.1.0 The `$domain` parameter was made optional.
*
+ * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
+ *
* @param string $handle Script handle the textdomain will be attached to.
* @param string $domain Optional. Text domain. Default 'default'.
* @param string $path Optional. The full file path to the directory containing translation files.