Docs: Document that the $src parameter of WP_Dependencies::add() can be boolean.
Props dimadin. Fixes #45009. Built from https://develop.svn.wordpress.org/trunk@43661 git-svn-id: http://core.svn.wordpress.org/trunk@43490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -202,7 +202,8 @@ class WP_Dependencies {
|
||||
* @since 2.6.0 Moved from `WP_Scripts`.
|
||||
*
|
||||
* @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 string|bool $src Full URL of the item, or path of the item relative to the WordPress root directory.
|
||||
* If source is set to false, item is an alias of other items it depends on.
|
||||
* @param string[] $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
|
||||
|
||||
Reference in New Issue
Block a user