[wp-trac] [WordPress Trac] #59650: Coding Standards fixes for WP 6.5
WordPress Trac
noreply at wordpress.org
Fri Nov 17 17:09:23 UTC 2023
#59650: Coding Standards fixes for WP 6.5
--------------------------------------+-------------------------------
Reporter: hellofromTonya | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"57123" 57123]:
{{{
#!CommitTicketReference repository="" revision="57123"
Coding Standards: Rewrite a few capability checks for clarity and
readability.
This aims to:
* Perform the checks as early as possible to avoid redundant function
calls.
* Remove an empty conditiaonal branch and make the exit conditions
clearer.
* Bring the formatting in line with other multi-line conditionals in core.
Follow-up to [56836].
See #59650.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59650#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list