WordPress.org

Make WordPress Core

Changeset 4179


Ignore:
Timestamp:
09/10/2006 05:16:20 PM (13 years ago)
Author:
ryan
Message:

Pass along the modified string instead of the original. fixes #3118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/plugin.php

    r4177 r4179  
    2727    global $wp_filter;
    2828
    29     $args = array($string);
     29    $args = array();
    3030    for ( $a = 2; $a < func_num_args(); $a++ )
    3131        $args[] = func_get_arg($a);
     
    4343                $accepted_args = $function['accepted_args'];
    4444
     45                $the_args = $args;
     46                array_unshift($the_args, $string);
    4547                if ( $accepted_args > 0 )
    46                     $the_args = array_slice($args, 0, $accepted_args);
     48                    $the_args = array_slice($the_args, 0, $accepted_args);
    4749                elseif ( $accepted_args == 0 )
    4850                    $the_args = NULL;
    49                 else
    50                     $the_args = $args;
    5151
    5252                $string = call_user_func_array($function_name, $the_args);
Note: See TracChangeset for help on using the changeset viewer.