Skip to content

Commit 5ee043b

Browse files
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
1 parent 4f56c3d commit 5ee043b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/wp-includes/revision.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,6 @@ function wp_restore_post_revision( $revision, $fields = null ) {
500500
// Update last edit user.
501501
update_post_meta( $post_id, '_edit_last', get_current_user_id() );
502502

503-
// Restore any revisioned meta fields.
504-
wp_restore_post_revision_meta( $post_id, $revision['ID'] );
505-
506503
/**
507504
* Fires after a post revision has been restored.
508505
*

0 commit comments

Comments
 (0)