WordPress.org

Make WordPress Core

Ticket #5318: 5318.diff

File 5318.diff, 479 bytes (added by xknown, 11 years ago)
  • wp-includes/link-template.php

     
    500500                        $query_string = '';
    501501                }
    502502
    503                 $request = preg_replace( '|page/(.+)/?$|', '', $request);
     503                $request = preg_replace( '|page/\d+/?$|', '', $request);
    504504                $request = preg_replace( '|^index\.php|', '', $request);
    505505                $request = ltrim($request, '/');
    506506