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. Built from https://develop.svn.wordpress.org/trunk@56715 git-svn-id: http://core.svn.wordpress.org/trunk@56227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89a99dba2f
commit
3092085a60
|
@ -500,9 +500,6 @@ function wp_restore_post_revision( $revision, $fields = null ) {
|
||||||
// Update last edit user.
|
// Update last edit user.
|
||||||
update_post_meta( $post_id, '_edit_last', get_current_user_id() );
|
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.
|
* Fires after a post revision has been restored.
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-alpha-56714';
|
$wp_version = '6.4-alpha-56715';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue