Changes in trunk/wp-includes/plugin.php [17638:16955]
- File:
-
- 1 edited
-
trunk/wp-includes/plugin.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r17638 r16955 136 136 137 137 $args = array(); 138 $wp_current_filter[] = $tag; 138 139 139 140 // Do 'all' actions first 140 141 if ( isset($wp_filter['all']) ) { 141 $wp_current_filter[] = $tag;142 142 $args = func_get_args(); 143 143 _wp_call_all_hook($args); … … 145 145 146 146 if ( !isset($wp_filter[$tag]) ) { 147 if ( isset($wp_filter['all']) ) 148 array_pop($wp_current_filter); 147 array_pop($wp_current_filter); 149 148 return $value; 150 149 } 151 152 if ( !isset($wp_filter['all']) )153 $wp_current_filter[] = $tag;154 150 155 151 // Sort … … 198 194 global $wp_filter, $merged_filters, $wp_current_filter; 199 195 196 $wp_current_filter[] = $tag; 197 200 198 // Do 'all' actions first 201 199 if ( isset($wp_filter['all']) ) { 202 $wp_current_filter[] = $tag;203 200 $all_args = func_get_args(); 204 201 _wp_call_all_hook($all_args); … … 206 203 207 204 if ( !isset($wp_filter[$tag]) ) { 208 if ( isset($wp_filter['all']) ) 209 array_pop($wp_current_filter); 205 array_pop($wp_current_filter); 210 206 return $args[0]; 211 207 } 212 213 if ( !isset($wp_filter['all']) )214 $wp_current_filter[] = $tag;215 208 216 209 // Sort … … 368 361 ++$wp_actions[$tag]; 369 362 363 $wp_current_filter[] = $tag; 364 370 365 // Do 'all' actions first 371 366 if ( isset($wp_filter['all']) ) { 372 $wp_current_filter[] = $tag;373 367 $all_args = func_get_args(); 374 368 _wp_call_all_hook($all_args); … … 376 370 377 371 if ( !isset($wp_filter[$tag]) ) { 378 if ( isset($wp_filter['all']) ) 379 array_pop($wp_current_filter); 372 array_pop($wp_current_filter); 380 373 return; 381 374 } 382 383 if ( !isset($wp_filter['all']) )384 $wp_current_filter[] = $tag;385 375 386 376 $args = array(); … … 457 447 ++$wp_actions[$tag]; 458 448 449 $wp_current_filter[] = $tag; 450 459 451 // Do 'all' actions first 460 452 if ( isset($wp_filter['all']) ) { 461 $wp_current_filter[] = $tag;462 453 $all_args = func_get_args(); 463 454 _wp_call_all_hook($all_args); … … 465 456 466 457 if ( !isset($wp_filter[$tag]) ) { 467 if ( isset($wp_filter['all']) ) 468 array_pop($wp_current_filter); 458 array_pop($wp_current_filter); 469 459 return; 470 460 } 471 472 if ( !isset($wp_filter['all']) )473 $wp_current_filter[] = $tag;474 461 475 462 // Sort
Note: See TracChangeset
for help on using the changeset viewer.