Make WordPress Core


Ignore:
Timestamp:
09/26/2023 03:42:56 PM (12 months ago)
Author:
adamsilverstein
Message:

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.

File:
1 edited

Legend:

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

    r56714 r56715  
    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.
Note: See TracChangeset for help on using the changeset viewer.