Skip to content

Commit

Permalink
Footnotes: add missing _ in revision field filter (#53135)
Browse files Browse the repository at this point in the history
* Footnotes: add missing _ in revision field filter

* Use correct hook name

* Revert prefixing callback names
  • Loading branch information
ellatrix committed Aug 1, 2023
1 parent fbc3712 commit 561d244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/footnotes/index.php
Expand Up @@ -211,7 +211,7 @@ function wp_add_footnotes_to_revision( $fields ) {
function wp_get_footnotes_from_revision( $revision_field, $field, $revision ) {
return get_metadata( 'post', $revision->ID, $field, true );
}
add_filter( 'wp_post_revision_field_footnotes', 'wp_get_footnotes_from_revision', 10, 3 );
add_filter( '_wp_post_revision_field_footnotes', 'wp_get_footnotes_from_revision', 10, 3 );

/**
* The REST API autosave endpoint doesn't save meta, so we can use the
Expand Down

1 comment on commit 561d244

@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 561d244.
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/5722184088
📝 Reported issues:

Please sign in to comment.