Make WordPress Core


Ignore:
Timestamp:
01/29/2024 09:04:18 PM (11 months ago)
Author:
youknowriad
Message:

Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.

This patch, somewhat small brings a lot to WordPress.
This includes features like:

  • DataViews.
  • Customization tools like box shadow, background size and repeat.
  • UI improvements in the site editor.
  • Preferences sharing between the post and site editors.
  • Unified panels and editors between post and site editors.
  • Improved template mode in the post editor.
  • Iterations to multiple interactive blocks.
  • Preparing the blocks and UI for pattern overrides.
  • and a lot more.

Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.

File:
1 edited

Legend:

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

    r56710 r57377  
    6060
    6161/**
    62  * Registers the `core/post-terms` block on the server.
     62 * Returns the available variations for the `core/post-terms` block.
     63 *
     64 * @return array The available variations for the block.
    6365 */
    64 function register_block_core_post_terms() {
     66function build_post_term_block_variations() {
    6567    $taxonomies = get_taxonomies(
    6668        array(
     
    104106    }
    105107
     108    return array_merge( $built_ins, $custom_variations );
     109}
     110
     111/**
     112 * Registers the `core/post-terms` block on the server.
     113 */
     114function register_block_core_post_terms() {
    106115    register_block_type_from_metadata(
    107116        __DIR__ . '/post-terms',
    108117        array(
    109             'render_callback' => 'render_block_core_post_terms',
    110             'variations'      => array_merge( $built_ins, $custom_variations ),
     118            'render_callback'    => 'render_block_core_post_terms',
     119            'variation_callback' => 'build_post_term_block_variations',
    111120        )
    112121    );
Note: See TracChangeset for help on using the changeset viewer.