Opened 5 years ago
Closed 5 years ago
#51450 closed defect (bug) (fixed)
Incorrect @since value for add_allowed_options()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.6 | Priority: | low |
| Severity: | trivial | Version: | 5.5 |
| Component: | Options, Meta APIs | Keywords: | has-patch |
| Focuses: | docs | Cc: |
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.
Patch mentioned in ticket.