Ticket #14789: 14789.7.patch
File 14789.7.patch, 1.4 KB (added by , 14 years ago) |
---|
-
wp-includes/plugin.php
190 190 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt> 191 191 * @return mixed The filtered value after all hooked functions are applied to it. 192 192 */ 193 function apply_filters_ref_array($tag, $args) {193 function apply_filters_ref_array($tag, array $args) { 194 194 global $wp_filter, $merged_filters, $wp_current_filter; 195 195 196 196 $wp_current_filter[] = $tag; 197 197 198 198 // Do 'all' actions first 199 199 if ( isset($wp_filter['all']) ) { 200 $all_args = func_get_args(); 201 _wp_call_all_hook($all_args); 200 _wp_call_all_hook( array_merge( (array) $tag, $args ) ); 202 201 } 203 202 204 203 if ( !isset($wp_filter[$tag]) ) { … … 435 434 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt> 436 435 * @return null Will return null if $tag does not exist in $wp_filter array 437 436 */ 438 function do_action_ref_array($tag, $args) {437 function do_action_ref_array($tag, array $args) { 439 438 global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter; 440 439 441 440 if ( ! isset($wp_actions) ) … … 450 449 451 450 // Do 'all' actions first 452 451 if ( isset($wp_filter['all']) ) { 453 $all_args = func_get_args(); 454 _wp_call_all_hook($all_args); 452 _wp_call_all_hook( array_merge( (array) $tag, $args ) ); 455 453 } 456 454 457 455 if ( !isset($wp_filter[$tag]) ) {