WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/23/2016 02:31:15 PM (4 years ago)
Author:
swissspidy
Message:

Revisions: Remove unused post meta data during database upgrade.

Introduced in [23811], WordPress displayed some additional information for restored revisions for a short period of time. This was removed again in [25194], but the meta data was still being saved unnecessarily.

After 3 years and no plugins ever using this meta data, it's time to stop collecting it.

Fixes #36526.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/revision.php

    r37544 r37854  
    379379        return $post_id;
    380380
    381     // Add restore from details
    382     $restore_details = array(
    383         'restored_revision_id' => $revision_id,
    384         'restored_by_user'     => get_current_user_id(),
    385         'restored_time'        => time()
    386     );
    387     update_post_meta( $post_id, '_post_restored_from', $restore_details );
    388 
    389381    // Update last edit user
    390382    update_post_meta( $post_id, '_edit_last', get_current_user_id() );
Note: See TracChangeset for help on using the changeset viewer.