From 0a16223d4c6c8af37d0ca55f828740878101a46e Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sun, 15 Jan 2023 14:57:13 +0000 Subject: [PATCH] Docs: Use third-person singular verbs for Script Loader related function descriptions, as per docblocks standards. See #56792. Built from https://develop.svn.wordpress.org/trunk@55072 git-svn-id: http://core.svn.wordpress.org/trunk@54605 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.wp-scripts.php | 14 +++++++------- wp-includes/functions.wp-styles.php | 18 +++++++++--------- wp-includes/version.php | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index 1bd4d28bf3..d6c8aaddd2 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -9,7 +9,7 @@ */ /** - * Initialize $wp_scripts if it has not been set. + * Initializes $wp_scripts if it has not been set. * * @global WP_Scripts $wp_scripts * @@ -148,7 +148,7 @@ function wp_add_inline_script( $handle, $data, $position = 'after' ) { } /** - * Register a new script. + * Registers a new script. * * Registers a script to be enqueued later using the wp_enqueue_script() function. * @@ -184,7 +184,7 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f } /** - * Localize a script. + * Localizes a script. * * Works only if the script has already been registered. * @@ -249,7 +249,7 @@ function wp_set_script_translations( $handle, $domain = 'default', $path = '' ) } /** - * Remove a registered script. + * Removes a registered script. * * Note: there are intentional safeguards in place to prevent critical admin scripts, * such as jQuery core, from being unregistered. @@ -322,7 +322,7 @@ function wp_deregister_script( $handle ) { } /** - * Enqueue a script. + * Enqueues a script. * * Registers the script if $src provided (does NOT overwrite), and enqueues it. * @@ -364,7 +364,7 @@ function wp_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $ } /** - * Remove a previously enqueued script. + * Removes a previously enqueued script. * * @see WP_Dependencies::dequeue() * @@ -400,7 +400,7 @@ function wp_script_is( $handle, $status = 'enqueued' ) { } /** - * Add metadata to a script. + * Adds metadata to a script. * * Works only if the script has already been registered. * diff --git a/wp-includes/functions.wp-styles.php b/wp-includes/functions.wp-styles.php index 8b7f4595c3..592bb41ade 100644 --- a/wp-includes/functions.wp-styles.php +++ b/wp-includes/functions.wp-styles.php @@ -9,7 +9,7 @@ */ /** - * Initialize $wp_styles if it has not been set. + * Initializes $wp_styles if it has not been set. * * @global WP_Styles $wp_styles * @@ -28,7 +28,7 @@ function wp_styles() { } /** - * Display styles that are in the $handles queue. + * Displays styles that are in the $handles queue. * * Passing an empty array to $handles prints the queue, * passing an array with one string prints that style, @@ -69,7 +69,7 @@ function wp_print_styles( $handles = false ) { } /** - * Add extra CSS styles to a registered stylesheet. + * Adds extra CSS styles to a registered stylesheet. * * Styles will only be added if the stylesheet is already in the queue. * Accepts a string $data containing the CSS. If two or more CSS code blocks @@ -105,7 +105,7 @@ function wp_add_inline_style( $handle, $data ) { } /** - * Register a CSS stylesheet. + * Registers a CSS stylesheet. * * @see WP_Dependencies::add() * @link https://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types. @@ -133,7 +133,7 @@ function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media } /** - * Remove a registered stylesheet. + * Removes a registered stylesheet. * * @see WP_Dependencies::remove() * @@ -148,7 +148,7 @@ function wp_deregister_style( $handle ) { } /** - * Enqueue a CSS stylesheet. + * Enqueues a CSS stylesheet. * * Registers the style if source provided (does NOT overwrite) and enqueues. * @@ -184,7 +184,7 @@ function wp_enqueue_style( $handle, $src = '', $deps = array(), $ver = false, $m } /** - * Remove a previously enqueued CSS stylesheet. + * Removes a previously enqueued CSS stylesheet. * * @see WP_Dependencies::dequeue() * @@ -199,7 +199,7 @@ function wp_dequeue_style( $handle ) { } /** - * Check whether a CSS stylesheet has been added to the queue. + * Checks whether a CSS stylesheet has been added to the queue. * * @since 2.8.0 * @@ -215,7 +215,7 @@ function wp_style_is( $handle, $status = 'enqueued' ) { } /** - * Add metadata to a CSS stylesheet. + * Adds metadata to a CSS stylesheet. * * Works only if the stylesheet has already been registered. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 41446d6e21..f304f059c5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55071'; +$wp_version = '6.2-alpha-55072'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.