diff --git a/lib/load.php b/lib/load.php index 89d360fb80c4b6..801cd27527c96e 100644 --- a/lib/load.php +++ b/lib/load.php @@ -14,16 +14,6 @@ require_once __DIR__ . '/init.php'; require_once __DIR__ . '/upgrade.php'; -register_post_meta( - 'post', - 'footnotes', - array( - 'show_in_rest' => true, - 'single' => true, - 'type' => 'string', - ) -); - /** * Checks whether the Gutenberg experiment is enabled. * diff --git a/packages/block-editor/src/store/reducer.js b/packages/block-editor/src/store/reducer.js index a9a933a23a07c6..b851c0293c8f16 100644 --- a/packages/block-editor/src/store/reducer.js +++ b/packages/block-editor/src/store/reducer.js @@ -9,7 +9,6 @@ import fastDeepEqual from 'fast-deep-equal/es6'; import { pipe } from '@wordpress/compose'; import { combineReducers, select } from '@wordpress/data'; import { store as blocksStore } from '@wordpress/blocks'; - /** * Internal dependencies */ diff --git a/packages/block-library/src/footnotes/index.php b/packages/block-library/src/footnotes/index.php index f04bb44e469750..bf0f9057b5cdcb 100644 --- a/packages/block-library/src/footnotes/index.php +++ b/packages/block-library/src/footnotes/index.php @@ -51,9 +51,18 @@ function render_block_core_footnotes( $attributes, $content, $block ) { } /** - * Registers the `core/comment-template` block on the server. + * Registers the `core/footnotes` block on the server. */ function register_block_core_footnotes() { + register_post_meta( + 'post', + 'footnotes', + array( + 'show_in_rest' => true, + 'single' => true, + 'type' => 'string', + ) + ); register_block_type_from_metadata( __DIR__ . '/footnotes', array(