Opened 8 years ago
Closed 7 years ago
#46854 closed defect (bug) (fixed)
Incorrect type docblock annotation for $current_partial_id in wp-includes/customize/class-wp-customize-selective-refresh.php
| Reported by: | diddledani | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Customize | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
The type annotation docblock indicates that $current_partial_id is a string, but occasionally the variable is assigned a null value. The attached patch fixes the docblock to state that null is allowable as well as string.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch to change type annotation in docblock from string to string|null