mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Revisions: avoid double call to wp_restore_post_revision_meta when restoring post.
Remove an extra call to `wp_restore_post_revision_meta` - the meta restore action is already hooked to `wp_restore_post_revision`. Follow up to [56714]. Props: spacedmonkey. Fixes #20564. git-svn-id: https://develop.svn.wordpress.org/trunk@56715 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -500,9 +500,6 @@ function wp_restore_post_revision( $revision, $fields = null ) {
|
||||
// Update last edit user.
|
||||
update_post_meta( $post_id, '_edit_last', get_current_user_id() );
|
||||
|
||||
// Restore any revisioned meta fields.
|
||||
wp_restore_post_revision_meta( $post_id, $revision['ID'] );
|
||||
|
||||
/**
|
||||
* Fires after a post revision has been restored.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user