From b2a8c63881036df363a5d2dbf2bcfbe16e3f5f13 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 25 Nov 2022 15:10:48 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@54875 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-dependencies.php | 2 +- src/wp-includes/class-wp-dependency.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-dependencies.php b/src/wp-includes/class-wp-dependencies.php index 68b33be395..0bc42bb282 100644 --- a/src/wp-includes/class-wp-dependencies.php +++ b/src/wp-includes/class-wp-dependencies.php @@ -241,7 +241,7 @@ class WP_Dependencies { * @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 * 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. * Default empty array. * @param string|bool|null $ver Optional. String specifying item version number, if it has one, diff --git a/src/wp-includes/class-wp-dependency.php b/src/wp-includes/class-wp-dependency.php index a018811773..bcc780828c 100644 --- a/src/wp-includes/class-wp-dependency.php +++ b/src/wp-includes/class-wp-dependency.php @@ -29,8 +29,10 @@ class _WP_Dependency { /** * The handle source. * + * If source is set to false, the item is an alias of other items it depends on. + * * @since 2.6.0 - * @var string + * @var string|false */ public $src;