mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Replace hardcoded usage of comment-page with the comment pagination base.
props johnbillion, SergeyBiryukov, webord. fixes #18084. git-svn-id: https://develop.svn.wordpress.org/trunk@31459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -503,6 +503,15 @@ class WP_Rewrite {
|
||||
*/
|
||||
public $pagination_base = 'page';
|
||||
|
||||
/**
|
||||
* Comments pagination permalink base.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $comments_pagination_base = 'comment-page';
|
||||
|
||||
/**
|
||||
* Feed permalink base.
|
||||
*
|
||||
@@ -1256,7 +1265,7 @@ class WP_Rewrite {
|
||||
//build a regex to match the trackback and page/xx parts of URLs
|
||||
$trackbackregex = 'trackback/?$';
|
||||
$pageregex = $this->pagination_base . '/?([0-9]{1,})/?$';
|
||||
$commentregex = 'comment-page-([0-9]{1,})/?$';
|
||||
$commentregex = $this->comments_pagination_base . '-([0-9]{1,})/?$';
|
||||
|
||||
//build up an array of endpoint regexes to append => queries to append
|
||||
if ( $endpoints ) {
|
||||
|
||||
Reference in New Issue
Block a user