[wp-trac] [WordPress Trac] #54728: Coding Standards fixes for WP 6.0

WordPress Trac noreply at wordpress.org
Fri Feb 11 18:47:52 UTC 2022


#54728: Coding Standards fixes 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:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"52706" 52706]:
 {{{
 #!CommitTicketReference repository="" revision="52706"
 Cache API: Reorder object cache functions and methods for consistency.

 The original order was alphabetical, which became less obvious as newer
 functions got added, resulting in a somewhat random order.

 This commits aims to organize the functions and related `WP_Object_Cache`
 methods in a more predictable order:

 * `wp_cache_init()`
 * `wp_cache_add()`
 * `wp_cache_add_multiple()`
 * `wp_cache_replace()`
 * `wp_cache_set()`
 * `wp_cache_set_multiple()`
 * `wp_cache_get()`
 * `wp_cache_get_multiple()`
 * `wp_cache_delete()`
 * `wp_cache_delete_multiple()`
 * `wp_cache_incr()`
 * `wp_cache_decr()`
 * `wp_cache_flush()`
 * `wp_cache_close()`
 * `wp_cache_add_global_groups()`
 * `wp_cache_add_non_persistent_groups()`
 * `wp_cache_switch_to_blog()`
 * `wp_cache_reset()`

 Follow-up to [3011], [6543], [7986], [13066], [18580], [21403], [47938],
 [52700], [52703-52705].

 See #54728, #54574.
 }}}

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


More information about the wp-trac mailing list