Changeset 56127 for trunk/src/wp-includes/blocks/footnotes.php
- Timestamp:
- 07/03/2023 09:11:14 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/footnotes.php
r56065 r56127 60 60 */ 61 61 function register_block_core_footnotes() { 62 register_post_meta( 63 'post', 64 'footnotes', 65 array( 66 'show_in_rest' => true, 67 'single' => true, 68 'type' => 'string', 69 ) 70 ); 62 foreach ( array( 'post', 'page' ) as $post_type ) { 63 register_post_meta( 64 $post_type, 65 'footnotes', 66 array( 67 'show_in_rest' => true, 68 'single' => true, 69 'type' => 'string', 70 ) 71 ); 72 } 71 73 register_block_type_from_metadata( 72 74 __DIR__ . '/footnotes',
Note: See TracChangeset
for help on using the changeset viewer.