Make WordPress Core


Ignore:
Timestamp:
07/03/2023 09:11:14 AM (21 months ago)
Author:
isabel_brison
Message:

Editor: update npm packages with bug fixes and blessed tasks.

Includes miscellaneous bug fixes and enhancements to the Library task (#58579) and to the site vs content editing task (#58641)

Fixes #58701.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/footnotes.php

    r56065 r56127  
    6060 */
    6161function 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    }
    7173    register_block_type_from_metadata(
    7274        __DIR__ . '/footnotes',
Note: See TracChangeset for help on using the changeset viewer.