Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24171


Ignore:
Timestamp:
04/23/2013 09:59:17 PM (13 years ago)
Author:
danielbachhuber
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24171 – Description

    initial v1  
    11Steps to produce:
    22
    3 # Create a new page called "My Home Page". Add some bacon ipsum.
    4 # Assign the page as your static home page.
    5 # Trash the page, but don't delete it.
     31. Create a new page called "My Home Page". Add some bacon ipsum.
     41. Assign the page as your static home page.
     51. Trash the page, but don't delete it.
    66
    77Expected behavior: My homepage reverts to a list of my most recent posts
     
    99Actual behavior: 404 template is loaded.
    1010
    11 In r6337, we started listing most recent posts when the page is *deleted*. However, there's a short circuit (added later) in `wp_delete_post()` to `wp_trash_post()`, which doesn't delete the option. This results in the homepage not being reset until the post is actually deleted.
     11In r6337, we started listing most recent posts when the page is ''deleted''. However, there's a short circuit (added later) in `wp_delete_post()` to `wp_trash_post()`, which doesn't delete the option. This results in the homepage not being reset until the post is actually deleted.
    1212
    1313I think the trashing behavior should be consistent with deleting behavior.