Ticket #21172: add-at-9-after-21169.patch
File add-at-9-after-21169.patch, 2.0 KB (added by , 12 years ago) |
---|
-
wp-includes/plugin.
old new 163 163 if ( empty($args) ) 164 164 $args = func_get_args(); 165 165 166 $pri = null; 166 167 while ( ( $next = each($wp_filter[$tag]) ) !== false ) { 168 if ( is_null($pri) ) 169 $pri = $next['key']; 170 if ( $pri > $next['key'] ) 171 continue; 167 172 foreach( (array) $next['value'] as $the_ ) 168 173 if ( !is_null($the_['function']) ){ 169 174 $args[1] = $value; … … 221 226 222 227 reset( $wp_filter[ $tag ] ); 223 228 229 $pri = null; 224 230 while ( ( $next = each($wp_filter[$tag]) ) !== false ) { 231 if ( is_null($pri) ) 232 $pri = $next['key']; 233 if ( $pri > $next['key'] ) 234 continue; 225 235 foreach( (array) $next['value'] as $the_ ) 226 236 if ( !is_null($the_['function']) ) 227 237 $args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); … … 397 407 398 408 reset( $wp_filter[ $tag ] ); 399 409 410 $pri = null; 400 411 while ( ( $next = each($wp_filter[$tag]) ) !== false ) { 412 if ( is_null($pri) ) 413 $pri = $next['key']; 414 if ( $pri > $next['key'] ) 415 continue; 401 416 foreach( (array) $next['value'] as $the_ ) 402 417 if ( !is_null($the_['function']) ) 403 418 call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); … … 478 493 479 494 reset( $wp_filter[ $tag ] ); 480 495 496 $pri = null; 481 497 while ( ( $next = each($wp_filter[$tag]) ) !== false ) { 498 if ( is_null($pri) ) 499 $pri = $next['key']; 500 if ( $pri > $next['key'] ) 501 continue; 482 502 foreach( (array) $next['value'] as $the_ ) 483 503 if ( !is_null($the_['function']) ) 484 504 call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); … … 708 728 global $wp_filter; 709 729 710 730 reset( $wp_filter['all'] ); 731 $pri = $null; 711 732 while ( ( $next = each($wp_filter['all']) ) !== false ) { 733 if ( is_null($pri) ) 734 $pri = $next['key']; 735 if ( $pri > $next['key'] ) 736 continue; 712 737 foreach( (array) $next['value'] as $the_ ) 713 738 if ( !is_null($the_['function']) ) 714 739 call_user_func_array($the_['function'], $args);