Make WordPress Core


Ignore:
Timestamp:
09/25/2006 02:12:34 AM (20 years ago)
Author:
ryan
Message:

Keep the frag at the end. Props mdawaffe. fixes #3078

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/functions.php

    r4229 r4231  
    20862086        }
    20872087
     2088        if ( $frag = strstr($uri, '#') )
     2089                $uri = substr($uri, 0, -strlen($frag));
     2090        else
     2091                $frag = '';
     2092
    20882093        if ( preg_match('|^https?://|i', $uri, $matches) ) {
    20892094                $protocol = $matches[0];
    … …  
    21252130                }
    21262131        }
    2127         $ret = $protocol . $base . $ret;
     2132        $ret = $protocol . $base . $ret . $frag;
    21282133        return trim($ret, '?');
    21292134}
Note: See TracChangeset for help on using the changeset viewer.