Docs: Correct the type for `_WP_Dependency::$src` property.
The handle source can be set to `false`, which means the item is an alias of other items it depends on. Follow-up to [7970], [25518], [43661], [47170], [48462], [54470]. Props mehulkaklotar, swissspidy, costdev. Fixes #57206. Built from https://develop.svn.wordpress.org/trunk@54875 git-svn-id: http://core.svn.wordpress.org/trunk@54427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2ed8d0650
commit
6025b41a5c
|
@ -241,7 +241,7 @@ class WP_Dependencies {
|
||||||
* @param string $handle Name of the item. Should be unique.
|
* @param string $handle Name of the item. Should be unique.
|
||||||
* @param string|false $src Full URL of the item, or path of the item relative
|
* @param string|false $src Full URL of the item, or path of the item relative
|
||||||
* to the WordPress root directory. If source is set to false,
|
* to the WordPress root directory. If source is set to false,
|
||||||
* item is an alias of other items it depends on.
|
* the item is an alias of other items it depends on.
|
||||||
* @param string[] $deps Optional. An array of registered item handles this item depends on.
|
* @param string[] $deps Optional. An array of registered item handles this item depends on.
|
||||||
* Default empty array.
|
* Default empty array.
|
||||||
* @param string|bool|null $ver Optional. String specifying item version number, if it has one,
|
* @param string|bool|null $ver Optional. String specifying item version number, if it has one,
|
||||||
|
|
|
@ -29,8 +29,10 @@ class _WP_Dependency {
|
||||||
/**
|
/**
|
||||||
* The handle source.
|
* The handle source.
|
||||||
*
|
*
|
||||||
|
* If source is set to false, the item is an alias of other items it depends on.
|
||||||
|
*
|
||||||
* @since 2.6.0
|
* @since 2.6.0
|
||||||
* @var string
|
* @var string|false
|
||||||
*/
|
*/
|
||||||
public $src;
|
public $src;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.2-alpha-54874';
|
$wp_version = '6.2-alpha-54875';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue