Make WordPress Core

Changeset 53212


Ignore:
Timestamp:
04/19/2022 11:35:50 AM (3 years ago)
Author:
gziolo
Message:

Editor: Correctly register the dynamic Cover block

The new "Featured Image" enhancement is handled dynamically, so we need to update how the Cover block is handled in the build processa and registered in the code.

Props ironprogrammer, costdev, Mamaduka, chaion07.
Fixes #55580.

Location:
trunk
Files:
3 edited

Legend:

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

    r53157 r53212  
    2222require ABSPATH . WPINC . '/blocks/comments-pagination-previous.php';
    2323require ABSPATH . WPINC . '/blocks/comments-pagination.php';
     24require ABSPATH . WPINC . '/blocks/cover.php';
    2425require ABSPATH . WPINC . '/blocks/file.php';
    2526require ABSPATH . WPINC . '/blocks/gallery.php';
     
    8081        'column',
    8182        'columns',
    82         'cover',
    8383        'embed',
    8484        'freeform',
  • trunk/tests/phpunit/includes/functions.php

    r53157 r53212  
    318318    remove_action( 'init', 'register_block_core_comments_pagination_numbers' );
    319319    remove_action( 'init', 'register_block_core_comments_pagination_previous' );
     320    remove_action( 'init', 'register_block_core_cover' );
    320321    remove_action( 'init', 'register_block_core_file' );
    321322    remove_action( 'init', 'register_block_core_gallery' );
  • trunk/tools/webpack/blocks.js

    r53157 r53212  
    3838        'comments-pagination-numbers',
    3939        'comments-pagination-previous',
     40        'cover',
    4041        'file',
    4142        'gallery',
     
    8889        'columns',
    8990        'comments-query-loop',
    90         'cover',
    9191        'embed',
    9292        'freeform',
Note: See TracChangeset for help on using the changeset viewer.