WordPress.org

Make WordPress Core

Ticket #3727: classes-2.0.diff

File classes-2.0.diff, 628 bytes (added by Kirin_Lin, 7 years ago)

diff file for 2.0

  • wp-includes/classes.php

     
    15251525                        // front.  For path info requests, this leaves us with the requesting 
    15261526                        // filename, if any.  For 404 requests, this leaves us with the 
    15271527                        // requested permalink.  
    1528                         $req_uri = str_replace($pathinfo, '', $req_uri); 
     1528                        $req_uri = str_replace($pathinfo, '', urldecode($req_uri)); 
    15291529                        $req_uri = trim($req_uri, '/'); 
    15301530                        $req_uri = preg_replace("|^$home_path|", '', $req_uri); 
    15311531                        $req_uri = trim($req_uri, '/');