[wp-trac] Re: [WordPress Trac] #7846: do_action and apply_filter should report if the user function is missing

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 8 08:17:06 GMT 2008


#7846: do_action and apply_filter should report if the user function is missing
------------------------+---------------------------------------------------
 Reporter:  nbachiyski  |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:  2.8      
Component:  General     |      Version:           
 Severity:  normal      |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by DD32):

 You can call [http://trac.wordpress.org/browser/trunk/wp-
 includes/plugin.php#L74 has_filter()] to check if a function has been
 registered for a filter/action hook, Infact, calling that will require
 less code than checking for a error condition being returned.

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


More information about the wp-trac mailing list