Skip to content

Commit

Permalink
Footnotes: fix accidental override (#53663)
Browse files Browse the repository at this point in the history
* Footnotes: fix accidental  override

* Remove double quotes
  • Loading branch information
ellatrix committed Aug 16, 2023
1 parent 433673c commit 574cc41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/block-library/src/footnotes/index.php
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

1 comment on commit 574cc41

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 574cc41.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5873271388
📝 Reported issues:

Please sign in to comment.