Make WordPress Core

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


Ignore:
Timestamp:
04/02/2013 02:10:32 AM (12 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16215, comment 83

    v1 v2  
    44
    55We are calling `wp_get_post_revisions()` on every load of edit-form-advanced.php (when determining whether to show the postbox), perhaps we can move the call to `_wp_upgrade_revisions_of_post()` there. We can use the loaded revisions to check the version, then upgrade them if needed.
     6
     7Another option is to check the version and upgrade on the first call of `wp_get_post_revisions()`, maybe using a static, etc.