Make WordPress Core

Ticket #8402: add_query_arg.diff

File add_query_arg.diff, 462 bytes (added by sivel, 15 years ago)
  • wp-includes/functions.php

     
    12061206
    12071207        $ret = build_query( $qs );
    12081208        $ret = trim( $ret, '?' );
    1209         $ret = preg_replace( '#=(&|$)#', '$1', $ret );
     1209        $ret = preg_replace( '#=(&|$)#', '$1', $ret );
    12101210        $ret = $protocol . $base . $ret . $frag;
    12111211        $ret = rtrim( $ret, '?' );
    12121212        return $ret;