[wp-trac] [WordPress Trac] #16745: doubled replace in setup_postdata

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 23 14:12:15 UTC 2011


#16745: doubled replace in setup_postdata
-------------------------+------------------------------
 Reporter:  hakre        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by hakre):

 Replying to [comment:3 garyc40]:
 > I'm sorry, but, what?
 >
 > Could you write a better description for this ticket?

 The patches are rather trivial so I thought self explanatory:

 If you first replace BA with A and then replace AB with A then there is no
 need to replace BAB with A as a third replace variant upfront.

 Next to that, you can make use of arrays to replace multiple needles at
 once.

 > And what do your patches have anything to do with the URL you posted?

 The URL was just informative, if you visit that address you will see the
 sourcecode of function setup_postdata() this ticket is about.

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


More information about the wp-trac mailing list