WordPress.org

Make WordPress Core

Ticket #5000: 5000.diff

File 5000.diff, 506 bytes (added by ryan, 7 years ago)
  • wp-includes/link-template.php

     
    501501                } 
    502502 
    503503                $request = preg_replace( '|page/(.+)/?$|', '', $request); 
    504                 $request = preg_replace( '|^index\.php/|', '', $request); 
     504                $request = preg_replace( '|^index\.php|', '', $request); 
     505                $request = ltrim($request, '/'); 
    505506 
    506507                $base = trailingslashit( get_bloginfo( 'url' ) ); 
    507508