WordPress.org

Make WordPress Core

Changeset 6415


Ignore:
Timestamp:
12/19/2007 07:27:14 PM (10 years ago)
Author:
ryan
Message:

Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r6413 r6415  
    623623        }
    624624
    625         $request = preg_replace( '|page/(.+)/?$|', '', $request);
     625        $request = preg_replace( '|page/\d+/?$|', '', $request);
    626626        $request = preg_replace( '|^index\.php|', '', $request);
    627627        $request = ltrim($request, '/');
Note: See TracChangeset for help on using the changeset viewer.