[wp-trac] [WordPress Trac] #21274: Broken link for next comment pages for page on front

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 16 14:30:05 UTC 2012


#21274: Broken link for next comment pages for page on front
---------------------------+--------------------
 Reporter:  sirzooro       |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  3.5
Component:  Rewrite Rules  |     Version:  3.4.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+--------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => has-patch
 * milestone:  Awaiting Review => 3.5


Comment:

 Thanks, I can reproduce now as well.

 The problem is that rewrite rules are not flushed when setting a page as a
 front page, so the corresponding code in `generate_rewrite_rules()`
 doesn't get executed: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
 includes/rewrite.php#L1331

 [attachment:21274.patch] fixes the issue by calling
 `update_home_siteurl()` to flush the rules: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
 admin/includes/misc.php#L194

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21274#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list