[wp-trac] [WordPress Trac] #16903: PHP5-Port - Superfluous code in _deep_replace()

WordPress Trac noreply at wordpress.org
Tue Aug 20 05:56:24 UTC 2013


#16903: PHP5-Port - Superfluous code in _deep_replace()
-------------------------+---------------------
 Reporter:  hakre        |       Owner:  dd32
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.7
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |
-------------------------+---------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25054"]:
 {{{
 #!CommitTicketReference repository="" revision="25054"
 Simplify _deep_replace() by removing it's obscure looping and replacement
 checking logic, and instead, using the PHP5 $count parameter of
 str_replace(). Props hakre. Fixes #16903
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/16903#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list