[wp-trac] [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:08:41 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      |    Keywords:           
------------------------+---------------------------------------------------
 do_action/apply_filters tell me somehow that I the user function doesn't
 exists. For example I have entered the action name wrong and there is no
 proper way to debug it other from luck and guessing.

 Fixing do_action is easy -- it can just return false or WP_Error. The
 problem is with apply_filters -- it's return value is dependent on the
 user function and we can't interfere with it in no way.

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


More information about the wp-trac mailing list