Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 3, 2023
1 parent 4eb9ebf commit d93a95f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
10 changes: 0 additions & 10 deletions lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
1 change: 0 additions & 1 deletion packages/block-editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
11 changes: 10 additions & 1 deletion packages/block-library/src/footnotes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d93a95f

Please sign in to comment.