WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #23497, comment 136


Ignore:
Timestamp:
03/28/13 21:17:47 (16 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23497, comment 136

    v1 v2  
    44Thinking that when a post was published from QuickPress or PressThis, there is no such revision either so some existing posts will not have them. These revisions were only created from the New Post screen and (as far as I remember) were discussed as not needed/bugs at some point. 
    55 
    6 Edit: confirmed, these revisions were created by the first autosave that we run manually when the user clicks from the post title to the editor. So posts created not from the New Post screen won't have them. 
     6Edit: confirmed, these revisions are a result from the first autosave that we run manually when the user clicks from the post title to the editor (that's why the content is empty). So posts created not from the New Post screen won't have them. 
    77 
    88If we have to keep making these empty revisions, the return of `add_action( 'pre_post_update', 'wp_save_post_revision' )` in 23497.42.diff would need to make sure this runs only the very first time a past is saved. This also means we will have a minimum of 3 rows in the DB for each post, whether it's ever edited or not.