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