Changeset 13906
- Timestamp:
- 03/31/2010 09:39:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r13827 r13906 196 196 $wp_current_filter[] = $tag; 197 197 198 $value = $args[0];199 200 198 // Do 'all' actions first 201 199 if ( isset($wp_filter['all']) ) { … … 206 204 if ( !isset($wp_filter[$tag]) ) { 207 205 array_pop($wp_current_filter); 208 return $ value;206 return $args[0]; 209 207 } 210 208 … … 220 218 foreach( (array) current($wp_filter[$tag]) as $the_ ) 221 219 if ( !is_null($the_['function']) ) 222 $ value= call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));220 $args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); 223 221 224 222 } while ( next($wp_filter[$tag]) !== false ); … … 226 224 array_pop( $wp_current_filter ); 227 225 228 return $ value;226 return $args[0]; 229 227 } 230 228
Note: See TracChangeset
for help on using the changeset viewer.