[wp-trac] [WordPress Trac] #54729: Docblock improvements for WP 6.0

WordPress Trac noreply at wordpress.org
Fri Feb 11 18:32:03 UTC 2022


#54729: Docblock improvements for WP 6.0
----------------------------+---------------------
 Reporter:  hellofromTonya  |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  6.0
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"52705" 52705]:
 {{{
 #!CommitTicketReference repository="" revision="52705"
 Docs: Correct the suggested alternative for the deprecated
 `wp_cache_reset()` function.

 While this was previously added and reverted more than once as part of
 various documentation cleanup efforts, `wp_cache_switch_to_blog()` appears
 to be the correct alternative for `wp_cache_reset()`, per the latter's
 DocBlock.

 This commit also corrects the `@deprecated` tag for
 `WP_Object_Cache::reset()` to link to the `::switch_to_blog()` method of
 the class, instead of the function of the same name.

 Follow-up to [13066], [21403], [22111], [33678], [34225], [34226],
 [40929].

 See #54729.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54729#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list