[wp-trac] [WordPress Trac] #63211: Optimize wp_slash() and Prevent Unnecessary Code Execution

WordPress Trac noreply at wordpress.org
Mon Apr 7 16:08:38 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     |     Focuses:
--------------------------+-----------------------

Comment (by staurand):

 Maybe we should move the string test condition first.
 {{{#!php
 <?php
 if ( is_string( $value ) ) {
 }}}
 There will always be more strings as param than array?

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


More information about the wp-trac mailing list