[wp-trac] [WordPress Trac] #55647: Coding Standards fixes for WP 6.1

WordPress Trac noreply at wordpress.org
Sat Aug 20 00:25:28 UTC 2022


#55647: Coding Standards fixes for WP 6.1
----------------------------+-------------------------------
 Reporter:  costdev         |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  6.1
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53914" 53914]:
 {{{
 #!CommitTicketReference repository="" revision="53914"
 Coding Standards: Check for deprecated options before `wp_installing()`.

 This is a micro-optimization that makes the conditional several times
 faster for non-deprecated options by avoiding an unnecessary function
 call.

 Functions affected:
 * `get_option()`
 * `update_option()`
 * `add_option()`

 Follow-up to [48575].

 See #55647.
 }}}

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


More information about the wp-trac mailing list