Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Footnotes: fix accidental override
  • Loading branch information
ellatrix committed Aug 15, 2023
commit e92a5f0e016c0153af44eb8856bb17bb5d126350
5 changes: 2 additions & 3 deletions packages/block-library/src/footnotes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ function wp_add_footnotes_revisions_to_post_meta( $post ) {
}
}

foreach ( array( 'post', 'page' ) as $post_type ) {
add_action( "rest_after_insert_{$post_type}", 'wp_add_footnotes_revisions_to_post_meta' );
}
add_action( "rest_after_insert_post", 'wp_add_footnotes_revisions_to_post_meta' );
add_action( "rest_after_insert_page", 'wp_add_footnotes_revisions_to_post_meta' );

/**
* Restores the footnotes meta value from the revision.
Expand Down