[wp-trac] Re: [WordPress Trac] #8723: Instances of same class that call variable hook first generate same wp_filter_id

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 7 17:03:06 GMT 2009


#8723: Instances of same class that call variable hook first generate same
wp_filter_id
--------------------------+-------------------------------------------------
 Reporter:  bkrausz       |       Owner:  jacobsantos
     Type:  defect (bug)  |      Status:  assigned   
 Priority:  normal        |   Milestone:  2.8        
Component:  Plugins       |     Version:  2.7        
 Severity:  normal        |    Keywords:             
--------------------------+-------------------------------------------------

Comment(by bkrausz):

 Explanation, from wp-hackers:

 What about using a static var that's incremented with each read to fill
 wp_filter_id?  That guarantees it will be unique amongst other objects.
 It could track class names so the id stays smaller, but I see no benefit
 to that...

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


More information about the wp-trac mailing list