WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/07/2010 01:18:42 AM (9 years ago)
Author:
scribu
Message:

Don't hardcode the pagination base. Fixes #12507

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r15109 r15582  
    479479     */
    480480    var $comments_base = 'comments';
     481
     482    /**
     483     * Pagination permalink base.
     484     *
     485     * @since 3.1.0
     486     * @access private
     487     * @var string
     488     */
     489    var $pagination_base = 'page';
    481490
    482491    /**
     
    12801289        //build a regex to match the trackback and page/xx parts of URLs
    12811290        $trackbackregex = 'trackback/?$';
    1282         $pageregex = 'page/?([0-9]{1,})/?$';
     1291        $pageregex = $this->pagination_base . '/?([0-9]{1,})/?$';
    12831292        $commentregex = 'comment-page-([0-9]{1,})/?$';
    12841293
Note: See TracChangeset for help on using the changeset viewer.