[wp-trac] [WordPress Trac] #63211: Optimize wp_slash() and Prevent Unnecessary Code Execution
WordPress Trac
noreply at wordpress.org
Mon Sep 15 13:36:50 UTC 2025
#63211: Optimize wp_slash() and Prevent Unnecessary Code Execution
-------------------------------------+-----------------------
Reporter: dilipbheda | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------
Changes (by rollybueno):
* keywords: has-patch => has-patch needs-testing
Comment:
Honestly, I agree and this looks good. Returning early for arrays makes
the function a bit cleaner, and I don’t see any downside with this change,
though I'm adding `needs-testing` just in case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63211#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list