[wp-trac] [WordPress Trac] #12913: Notification mechanism for deprecated actions

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 10 17:08:39 UTC 2010


#12913: Notification mechanism for deprecated actions
-------------------------+--------------------------------------------------
 Reporter:  strider72    |       Owner:  nacin         
     Type:  enhancement  |      Status:  reviewing     
 Priority:  normal       |   Milestone:  Future Release
Component:  Plugins      |     Version:                
 Severity:  normal       |    Keywords:                
-------------------------+--------------------------------------------------

Comment(by strider72):

 Okay... here's a thought:  Is there a definitive "last" hook in WordPress?
 Right after that fires we could fire off a function that looks at
 did_action and compares it to an array of deprecated hooks, and fires
 _deprecated_filter as needed.

 I was first trying to figure how to hook it after the do_action is called,
 but of course the problem there is that do_action fires even if there are
 no hooks attached to it.

 Would it slow down do_action/apply_filter too much if we simply added an
 in_array to compare $tag to an array of deprecated hooks?

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


More information about the wp-trac mailing list