Make WordPress Core

Ticket #18084: 18084.patch

File 18084.patch, 877 bytes (added by SergeyBiryukov, 11 years ago)
  • wp-includes/rewrite.php

     
    483483        var $pagination_base = 'page';
    484484
    485485        /**
     486         * Comments pagination permalink base.
     487         *
     488         * @since 3.5
     489         * @access private
     490         * @var string
     491         */
     492        var $comments_pagination_base = 'comment-page';
     493
     494        /**
    486495         * Feed permalink base.
    487496         *
    488497         * @since 1.5.0
     
    12371246                //build a regex to match the trackback and page/xx parts of URLs
    12381247                $trackbackregex = 'trackback/?$';
    12391248                $pageregex = $this->pagination_base . '/?([0-9]{1,})/?$';
    1240                 $commentregex = 'comment-page-([0-9]{1,})/?$';
     1249                $commentregex = $this->comments_pagination_base . '-([0-9]{1,})/?$';
    12411250
    12421251                //build up an array of endpoint regexes to append => queries to append
    12431252                if ( $endpoints ) {