Make WordPress Core


Ignore:
Timestamp:
02/14/2015 03:47:02 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Replace hardcoded usage of comment-page with the comment pagination base.

props johnbillion, SergeyBiryukov, webord.
fixes #18084.

File:
1 edited

Legend:

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

    r31126 r31459  
    505505
    506506        /**
     507         * Comments pagination permalink base.
     508         *
     509         * @since 4.2.0
     510         * @access private
     511         * @var string
     512         */
     513        var $comments_pagination_base = 'comment-page';
     514
     515        /**
    507516         * Feed permalink base.
    508517         *
    … …  
    12571266                $trackbackregex = 'trackback/?$';
    12581267                $pageregex = $this->pagination_base . '/?([0-9]{1,})/?$';
    1259                 $commentregex = 'comment-page-([0-9]{1,})/?$';
     1268                $commentregex = $this->comments_pagination_base . '-([0-9]{1,})/?$';
    12601269
    12611270                //build up an array of endpoint regexes to append => queries to append
Note: See TracChangeset for help on using the changeset viewer.