[wp-trac] Re: [WordPress Trac] #5015: Add_Filter priority fails with some hooks

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 22 14:55:54 GMT 2007


#5015: Add_Filter priority fails with some hooks
-------------------------------+--------------------------------------------
 Reporter:  mattyrob           |        Owner:  anonymous 
     Type:  defect             |       Status:  closed    
 Priority:  high               |    Milestone:            
Component:  General            |      Version:  2.3       
 Severity:  normal             |   Resolution:  worksforme
 Keywords:  plugin add_filter  |  
-------------------------------+--------------------------------------------
Comment (by mattyrob):

 You are quite right - no bug in the add_filter code. Still something funny
 going on though.

 Basically I've fixed my issue so I'll leave this ticket closed but..

 I have a preg_replace looking for (<p>)(\n)*<!--subscribe2-->(\n)*(</p>)
 which worked fine with no priority set and with the priority set as 10.
 Lower than this it fails unless I change my regualr expression to <!--
 subscribe2-->.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5015#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list