WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16215, comment 91


Ignore:
Timestamp:
04/08/13 00:10:40 (13 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16215, comment 91

    initial v1  
    11> ...first call to wp_insert_post() inserts the first revision. But, this should not happen on auto-drafts. 
    22 
    3 `wp_save_post_revision()` short-circuits on `'auto-draft' == $post->post_status`, so that's working properly. Wondering if we should remove and re-add the action in get_default_post_to_edit() anyway. 
     3`wp_save_post_revision()` bails on `'auto-draft' == $post->post_status`, so that's working properly. Wondering if we should remove and re-add the action in get_default_post_to_edit() anyway.