Make WordPress Core

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


Ignore:
Timestamp:
03/28/2013 12:26:52 AM (12 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16215, comment 66

    initial v1  
    1313the `$last_revision` could be an autosave. In some cases that works, in other, not.
    1414- `_wp_upgrade_revisions_of_post()` seems to be running each time a post is loaded for editing. It needs to run only once per post and update the revisions versions. Also some of the logic there is "backwards" :) First we save a revision, then check if the post_type supports revisions...
     15
     16Edit: `_wp_upgrade_revisions_of_post()` also uses `wp_update_post()` to update revisions when fixing the author and revision version. This results in changing `post_modified` on all revisions to the current date/time. When listing them that looks pretty weird. Perhaps we can do a custom db query to only update the two fields that need updating?