[wp-trac] Re: [WordPress Trac] #8598: When a Static page is set as the front page, Comment paging doesnt work.

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 13 09:53:45 GMT 2008


#8598: When a Static page is set as the front page, Comment paging doesnt work.
-------------------------------------+--------------------------------------
 Reporter:  DD32                     |        Owner:       
     Type:  defect                   |       Status:  new  
 Priority:  normal                   |    Milestone:  2.7.1
Component:  Comments                 |      Version:  2.7  
 Severity:  normal                   |   Resolution:       
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Changes (by DD32):

  * keywords:  needs-patch => has-patch needs-testing

Comment:

 Attached patch adds a single extra rule:

 {{{
 'comment-page-([0-9]{1,})/?$' => string
 'index.php?&page_id=124&cpage=$matches[1]' (length=40)
 }}}
 (Just after the other root rules, eg:
 {{{
 'page/?([0-9]{1,})/?$' => string 'index.php?&paged=$matches[1]'
 (length=28)
 }}}
 )

 Since the pageID is hard-coded in the rule (Only way i could see to get it
 working, Passing a pagename=/ doesnt affect anything, and just passing the
 comment page directs it to the blog posts view)

 I assume a {{{ add_action('update_option-page_on_front',
 array(&$wp_rewrite, 'flush_rules'); }}} to default-filters.php would fix
 that (But since i've allready posted the patch, i'll not update it quite
 yet pending testing)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8598#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list