Changeset 25607 for trunk/src/wp-includes/plugin.php
- Timestamp:
- 09/24/2013 07:04:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/plugin.php
r25476 r25607 19 19 * @since 1.5 20 20 */ 21 22 // Initialize the filter globals. 23 global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter; 24 25 if ( ! isset( $wp_filter ) ) 26 $wp_filter = array(); 27 28 if ( ! isset( $wp_actions ) ) 29 $wp_actions = array(); 30 31 if ( ! isset( $merged_filters ) ) 32 $merged_filters = array(); 33 34 if ( ! isset( $wp_current_filter ) ) 35 $wp_current_filter = array(); 21 36 22 37 /** … … 372 387 global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter; 373 388 374 if ( ! isset($wp_actions) )375 $wp_actions = array();376 377 389 if ( ! isset($wp_actions[$tag]) ) 378 390 $wp_actions[$tag] = 1; … … 436 448 global $wp_actions; 437 449 438 if ( ! isset( $wp_actions ) || ! isset( $wp_actions[$tag] ) )450 if ( ! isset( $wp_actions[ $tag ] ) ) 439 451 return 0; 440 452 … … 460 472 function do_action_ref_array($tag, $args) { 461 473 global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter; 462 463 if ( ! isset($wp_actions) )464 $wp_actions = array();465 474 466 475 if ( ! isset($wp_actions[$tag]) )
Note: See TracChangeset
for help on using the changeset viewer.