mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Don't hardcode the pagination base. Fixes #12507
git-svn-id: https://develop.svn.wordpress.org/trunk@15582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -479,6 +479,15 @@ class WP_Rewrite {
|
||||
*/
|
||||
var $comments_base = 'comments';
|
||||
|
||||
/**
|
||||
* Pagination permalink base.
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $pagination_base = 'page';
|
||||
|
||||
/**
|
||||
* Feed permalink base.
|
||||
*
|
||||
@@ -1279,7 +1288,7 @@ class WP_Rewrite {
|
||||
|
||||
//build a regex to match the trackback and page/xx parts of URLs
|
||||
$trackbackregex = 'trackback/?$';
|
||||
$pageregex = 'page/?([0-9]{1,})/?$';
|
||||
$pageregex = $this->pagination_base . '/?([0-9]{1,})/?$';
|
||||
$commentregex = 'comment-page-([0-9]{1,})/?$';
|
||||
|
||||
//build up an array of endpoint regexes to append => queries to append
|
||||
|
||||
Reference in New Issue
Block a user