mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37854 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -378,14 +378,6 @@ function wp_restore_post_revision( $revision_id, $fields = null ) {
|
||||
if ( ! $post_id || is_wp_error( $post_id ) )
|
||||
return $post_id;
|
||||
|
||||
// Add restore from details
|
||||
$restore_details = array(
|
||||
'restored_revision_id' => $revision_id,
|
||||
'restored_by_user' => get_current_user_id(),
|
||||
'restored_time' => time()
|
||||
);
|
||||
update_post_meta( $post_id, '_post_restored_from', $restore_details );
|
||||
|
||||
// Update last edit user
|
||||
update_post_meta( $post_id, '_edit_last', get_current_user_id() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user