Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16215, comment 83

    v2 v3  
    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.
    66
    7 Another option is to check the version and upgrade on the first call of `wp_get_post_revisions()`, maybe using a static, etc.
     7Another option is to check the version and upgrade on the first call to `wp_get_post_revisions()`, maybe using a static, etc.