[wp-trac] [WordPress Trac] #27631: make "comment-page" slug configurable

WordPress Trac noreply at wordpress.org
Fri Apr 4 15:00:59 UTC 2014


#27631: make "comment-page" slug configurable
-------------------------+------------------------------
 Reporter:  qdinar       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  3.8.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by jesin):

 * keywords:   => has-patch


Comment:

 The patch adds a variable named `$comments_pagination_base` to the
 `WP_Rewrite` class.

 The following code modifies the 'comment-page' slug.

 {{{
 add_action( 'init', 'rename_comment-page_slug' );

 function rename_comment-page_slug() {
         $GLOBALS['wp_rewrite']->comments_pagination_base = 'foobar';
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27631#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list