Changes between Initial Version and Version 1 of Ticket #16215, comment 66
- Timestamp:
- 03/28/2013 12:26:52 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16215, comment 66
initial v1 13 13 the `$last_revision` could be an autosave. In some cases that works, in other, not. 14 14 - `_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 16 Edit: `_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?