mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: Improvements and corrections for the $ver parameter of the dependencies API functions.
See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@36993 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -204,11 +204,13 @@ class WP_Dependencies {
|
||||
* @since 2.1.0
|
||||
* @since 2.6.0 Moved from `WP_Scripts`.
|
||||
*
|
||||
* @param string $handle Unique item name.
|
||||
* @param string $src The item url.
|
||||
* @param array $deps Optional. An array of item handle strings on which this item depends.
|
||||
* @param string $ver Optional. Version (used for cache busting).
|
||||
* @param mixed $args Optional. Custom property of the item. NOT the class property $args. Examples: $media, $in_footer.
|
||||
* @param string $handle Name of the item. Should be unique.
|
||||
* @param string $src Full URL of the item, or path of the item relative to the WordPress root directory.
|
||||
* @param array $deps Optional. An array of registered item handles this item depends on. Default empty array.
|
||||
* @param string|bool|null $ver Optional. String specifying item version number, if it has one, which is added to the URL
|
||||
* 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.
|
||||
* @return bool Whether the item has been registered. True on success, false on failure.
|
||||
*/
|
||||
public function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
|
||||
|
||||
Reference in New Issue
Block a user