[wp-trac] [WordPress Trac] #5361: Deleting a set front page should then display posts on front page

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 16 01:33:39 GMT 2007


#5361: Deleting a set front page should then display posts on front page
---------------------+------------------------------------------------------
 Reporter:  hailin   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.5      
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 Create a new page.

 Go to Options > reading and set that page as the front page.

 Now delete that new page

 Front of the blog goes blank.

 Expected behaviour: It defaults back to Posts.

 ============================================
 Hailin:
 The root cause is the following: Suppose option show_on_front is
 configured to "page", and page_on_front is set to a specific page_id,
 and/or page_for_posts is set to another page_id.

 Then the user deletes a page from Manage=>Page, which happens to be the
 configured page_on_front. Then the page is gone, but those options still
 hold that deleted page_id. That cause the reported problem.

 The fix is that when we delete a page, we check to see whether the page is
 used in any of those options. If yes, we adjust them as well.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5361>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list