[wp-trac] [WordPress Trac] #59650: Coding Standards fixes for WP 6.5
WordPress Trac
noreply at wordpress.org
Mon Nov 27 09:16:12 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:"57139" 57139]:
{{{
#!CommitTicketReference repository="" revision="57139"
Coding Standards: Reorder conditionals in `is_random_header_image()`.
This aims to slightly improve performance by checking the faster `empty()`
language construct first and potentially avoiding an unnecessary function
call. Additionally, this better matches a similar conditional a few lines
below.
Follow-up to [17757], [17770].
Props Cybr.
See #59650.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59650#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list