[wp-trac] [WordPress Trac] #44915: Incorrect @since tag for _wp_privacy_statuses() function

WordPress Trac noreply at wordpress.org
Fri Sep 7 14:07:54 UTC 2018


#44915: Incorrect @since tag for _wp_privacy_statuses() function
--------------------------+-----------------------------
 Reporter:  dimadin       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.6
 Severity:  trivial       |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 In [42967], function `_wp_privacy_statuses()` was introduced and was later
 merged in [43071] to the 4.9 branch so it was available
 [https://core.trac.wordpress.org/browser/tags/4.9.6/src/wp-
 includes/post.php#L775 since 4.9.6].

 Its `@since` tag incorrectly states that it's available since 5.0.0.
 Attached patch fixes that, and it also fixes typo in PHPDoc tag for
 `WP_Privacy_Policy_Content::add()`.

 Because of case with 4.9 branch, not sure if it should be fixed there too.

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


More information about the wp-trac mailing list