WordPress.org

Plugin Directory

Changeset 358241


Ignore:
Timestamp:
03/10/11 13:49:35 (3 years ago)
Author:
tott
Message:

prevent filters which have same names as actions to fail.

Location:
debug-bar-extender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debug-bar-extender/trunk/debug-bar-extender.php

    r356915 r358241  
    55 Description: A minimalistic profiler / debugging class that hooks into the debug bar and can be implemented easily 
    66 Author: Thorsten Ott, Automattic 
    7  Version: 0.1 
     7 Version: 0.2 
    88 Author URI: http://hitchhacker.com 
    99 */ 
     
    191191                                            'wp_print_footer_scripts', 
    192192                                            'shutdown', 
    193                                              
    194193                                            'auth_redirect', 
    195194                                            'wp_default_scripts', 
     
    220219 
    221220            foreach( $checkpoint_actions as $action_hook ) { 
    222                 add_action( $action_hook, create_function( '', 'return Debug_Bar_Extender::instance()->checkpoint("' . $action_hook . ' action");' ) ); 
     221                add_action( $action_hook, create_function( '$in=NULL', 'Debug_Bar_Extender::instance()->checkpoint("' . $action_hook . ' action");if ( $in ) return $in;' ) ); 
    223222            } 
    224223        } 
  • debug-bar-extender/trunk/readme.txt

    r354146 r358241  
    7474== ChangeLog == 
    7575 
     76= Version 0.2 = 
     77 
     78* fixed: prevent filters which have same names as actions to fail. 
     79 
    7680= Version 0.1 = 
    7781 
Note: See TracChangeset for help on using the changeset viewer.