[wp-trac] Re: [WordPress Trac] #6603: bad next_posts_link when using a Static Front Page and custom permalink structure.

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 28 20:29:58 GMT 2008


#6603: bad next_posts_link when using a Static Front Page and custom permalink
structure.
-------------------------------------------------------+--------------------
 Reporter:  robanna                                    |        Owner:  ryan
     Type:  defect (bug)                               |       Status:  new 
 Priority:  high                                       |    Milestone:  2.8 
Component:  General                                    |      Version:  2.5 
 Severity:  major                                      |   Resolution:      
 Keywords:  has-patch,needs-testing,permalink,rewrite  |  
-------------------------------------------------------+--------------------
Comment (by emartin24):

 Added a new patch that moves the check into the page_rewrite_rules()
 function. I had it in the init() function until I realized that it was
 being called on every request instead of just the necessary ones.

 I did find one side-effect...if you make the change to use a static posts
 page and use a new permalink (adding /blog for example) to an existing
 site, by default, the old post url's will not work - they will just return
 a 404.

 For example:
 mysite.com/my-post (before - will no longer work after change)
 mysite.com/blog/my-post (after)

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


More information about the wp-trac mailing list