[wp-trac] [WordPress Trac] #10493: Allow closures as callbacks

WordPress Trac wp-trac at lists.automattic.com
Sun May 16 13:45:02 UTC 2010


#10493: Allow closures as callbacks
-------------------------+--------------------------------------------------
 Reporter:  scribu       |        Owner:  westi 
     Type:  enhancement  |       Status:  closed
 Priority:  low          |    Milestone:  3.0   
Component:  Plugins      |      Version:  2.9   
 Severity:  minor        |   Resolution:  fixed 
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------

Comment(by westi):

 Replying to [comment:33 scribu]:
 > Sure:
 >
 > {{{
 > add_action('admin_notices', function() {
 >       echo 'hi';
 > });
 > }}}

 Thanks - turned out wordpress-tests was hiding all errors from me even
 with WP_DEBUG enabled.  I've rectified that now :-)

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


More information about the wp-trac mailing list