Opened 6 years ago
Closed 6 years ago
#51450 closed defect (bug) (fixed)
Incorrect @since value for add_allowed_options()
| Reported by: | coffee2code | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | low | Milestone: | 5.6 |
| Component: | Options, Meta APIs | Version: | 5.5 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
In [48121] for WP 5.5, add_option_whitelist() was deprecated and renamed to add_allowed_options(). However, the @since documentation value for the new function was not updated to "5.5.0". The pre-existing value of "2.7.0" only properly applies to add_option_whitelist() and gives the mistaken impression that add_allowed_options() was available for use prior to 5.5.
This looks to just be an oversight as the similar remove_option_allowed_list() (which replaced remove_option_whitelist() in the same commit) has its @since value updated.
Patch attached.
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 mentioned in ticket.