Docs: Use correct `@since` tags for script enqueue functions.
See [4968], [3788]. See #35964. git-svn-id: https://develop.svn.wordpress.org/trunk@36729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c160fdddd3
commit
276635f8a3
|
@ -57,7 +57,7 @@ function _wp_scripts_maybe_doing_it_wrong( $function ) {
|
|||
* @see WP_Scripts::do_items()
|
||||
* @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param string|bool|array $handles Optional. Scripts to be printed. Default 'false'.
|
||||
* @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array.
|
||||
|
@ -122,7 +122,7 @@ function wp_add_inline_script( $handle, $data, $position = 'after' ) {
|
|||
* @see WP_Dependencies::add()
|
||||
* @see WP_Dependencies::add_data()
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @since 2.1.0
|
||||
* @since 4.3.0 A return value was added.
|
||||
*
|
||||
* @param string $handle Name of the script. Should be unique.
|
||||
|
@ -167,7 +167,7 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f
|
|||
* @link https://core.trac.wordpress.org/ticket/11520
|
||||
* @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @since 2.2.0
|
||||
*
|
||||
* @todo Documentation cleanup
|
||||
*
|
||||
|
@ -195,7 +195,7 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
|
|||
*
|
||||
* @see WP_Dependencies::remove()
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param string $handle Name of the script to be removed.
|
||||
*/
|
||||
|
@ -239,7 +239,7 @@ function wp_deregister_script( $handle ) {
|
|||
* @see WP_Dependencies::add_data()
|
||||
* @see WP_Dependencies::enqueue()
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param string $handle Name of the script.
|
||||
* @param string|bool $src Path to the script from the root directory of WordPress. Example: '/js/myscript.js'.
|
||||
|
|
Loading…
Reference in New Issue