[wp-trac] [WordPress Trac] #63211: Optimize wp_slash() and Prevent Unnecessary Code Execution
WordPress Trac
noreply at wordpress.org
Fri Oct 31 12:31:59 UTC 2025
#63211: Optimize wp_slash() and Prevent Unnecessary Code Execution
--------------------------+-----------------------
Reporter: dilipbheda | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"61103" 61103]:
{{{
#!CommitTicketReference repository="" revision="61103"
General: Return processed array values early in `wp_slash()`.
This is a micro-optimization to avoid an unnecessary `is_string()` check.
Follow-up to [23555], [48433].
Props dilipbheda, audrasjb, staurand, rollybueno, psykro, westonruter,
SergeyBiryukov.
Fixes #63211.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63211#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list