Opened 3 years ago
Closed 3 years ago
#57206 closed defect (bug) (fixed)
Incorrect doc type for `_WP_Dependency::$src`
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.2 | Priority: | low |
| Severity: | trivial | Version: | 5.5 |
| Component: | Script Loader | Keywords: | good-first-bug has-patch commit |
| Focuses: | Cc: |
Description
When using wp_register_script with $src set to false, it means the item is an alias of other items it depends on.
Thus, it's possible for the _WP_Dependency object to have a $src that's not a string. This should be reflected in the docblock.
/**
* The handle source.
*
* @since 2.6.0
* @var string|false
*/
public $src;
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
[48462] documented
$srcasstring, but did not include thefalsetype.Patch 57206.diff looks good to me - Thanks @mehulkaklotar!
Milestoning for 6.2 and adding for
commitconsideration.