Changeset 645847
- Timestamp:
- 12/29/2012 04:37:55 PM (13 years ago)
- Location:
- debug-this/trunk
- Files:
-
- 2 edited
-
_inc/extensions.php (modified) (1 diff)
-
debug-this.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
debug-this/trunk/_inc/extensions.php
r645549 r645847 62 62 add_debug_extension('wp_query', __('WP_Query'), __('Current WP_Query object - global $wp_query', 'debug-this'), array($this, 'wp_query'), 'Query'); 63 63 add_debug_extension('help', __('Debug This Menu', 'debug-this'), __('Modes Navigation', 'debug-this'), array($this, 'help')); 64 add_action('all', function(){65 global $debug_this_current_filter;66 $debug_this_current_filter[] = current_filter();67 });68 64 } 69 65 -
debug-this/trunk/debug-this.php
r645281 r645847 53 53 && !is_admin() 54 54 ){ 55 add_action('all', array($this, 'log_current_filters_and_actions')); 55 56 add_filter('template_include', array($this, 'template_include'), 90210, 1); 56 57 add_filter('template_redirect', array($this, 'buffer_page'), 90210); … … 178 179 } 179 180 180 } 181 add_action('init', function(){new Debug_This;}); 181 public function log_current_filters_and_actions(){ 182 global $debug_this_current_filter; 183 $debug_this_current_filter[] = current_filter(); 184 } 185 186 } 187 add_action('init', 'debug_this_init'); 188 function debug_this_init(){ 189 new Debug_This; 190 } 182 191 183 192 function add_debug_extension($id, $name, $description, $callback, $group = 'General'){
Note: See TracChangeset
for help on using the changeset viewer.