WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #16215, comment 42


Ignore:
Timestamp:
03/20/2013 09:11:03 PM (7 years ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16215, comment 42

    v1 v2  
    88
    99had asked @nacin about upgrading post data on WordPress database upgrade, but he said no. all thats required is running wp_save_post_revision on every post. wp_save_post_revision checks if a current post copy exists as a revision and saves a copy if not. 
     10
     11developers can safely call wp_save_post_revision() to make sure a current revision exists (it will not create a duplicate if one already exists).