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 authored and tellthemachines committed Aug 1, 2023
1 parent ef4f1f2 commit 2d8d1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/footnotes/index.php
Original file line number Diff line number Diff line change
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

0 comments on commit 2d8d1da

Please sign in to comment.