[wp-trac] [WordPress Trac] #51450: Incorrect @since value for add_allowed_options()

WordPress Trac noreply at wordpress.org
Mon Oct 5 20:07:20 UTC 2020


#51450: Incorrect @since value for add_allowed_options()
--------------------------------+-----------------------------
 Reporter:  coffee2code         |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  low                 |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  5.5
 Severity:  trivial             |   Keywords:  has-patch
  Focuses:  docs                |
--------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51450>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list