[wp-trac] [WordPress Trac] #57839: Coding Standards fixes for WP 6.3

WordPress Trac noreply at wordpress.org
Wed May 24 10:14:05 UTC 2023


#57839: Coding Standards fixes for WP 6.3
--------------------------------------+---------------------
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.3
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"55853" 55853]:
 {{{
 #!CommitTicketReference repository="" revision="55853"
 Help/About: Reverse the order of conditionals for displaying the "Go to
 Updates" link.

 `isset()` is faster than `current_user_can()`, so should be checked first.

 Includes updating code layout for better readability.

 Follow-up to [19442], [19524], [28477], [33466], [55848].

 See #57839.
 }}}

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


More information about the wp-trac mailing list