Changeset 4179 for trunk/wp-includes/plugin.php
- Timestamp:
- 09/10/2006 05:16:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r4177 r4179 27 27 global $wp_filter; 28 28 29 $args = array( $string);29 $args = array(); 30 30 for ( $a = 2; $a < func_num_args(); $a++ ) 31 31 $args[] = func_get_arg($a); … … 43 43 $accepted_args = $function['accepted_args']; 44 44 45 $the_args = $args; 46 array_unshift($the_args, $string); 45 47 if ( $accepted_args > 0 ) 46 $the_args = array_slice($ args, 0, $accepted_args);48 $the_args = array_slice($the_args, 0, $accepted_args); 47 49 elseif ( $accepted_args == 0 ) 48 50 $the_args = NULL; 49 else50 $the_args = $args;51 51 52 52 $string = call_user_func_array($function_name, $the_args);
Note: See TracChangeset
for help on using the changeset viewer.