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
This commit is contained in:
audrasjb 2023-01-15 14:57:13 +00:00
parent b211123173
commit 0a16223d4c
3 changed files with 17 additions and 17 deletions

View File

@ -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 * @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. * 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. * 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, * Note: there are intentional safeguards in place to prevent critical admin scripts,
* such as jQuery core, from being unregistered. * 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. * 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() * @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. * Works only if the script has already been registered.
* *

View File

@ -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 * @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 empty array to $handles prints the queue,
* passing an array with one string prints that style, * 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. * 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 * 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() * @see WP_Dependencies::add()
* @link https://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types. * @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() * @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. * 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() * @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 * @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. * Works only if the stylesheet has already been registered.
* *

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.