Make WordPress Core


Ignore:
Timestamp:
05/19/2021 03:07:55 PM (4 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages published for Gutenberg 10.6

It contains several changes in addition to regular update to WordPress packages:

  • All newly exposed blocks are now registered on the server.
  • Dutone block support was added.
  • Border block support was updated.
  • New shared function construct_wp_query_args was added for the family of Query blocks - it might need some further work.

Props youknowriad.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/layout.php

    r50761 r50929  
    1515 * @access private
    1616 *
    17  * @param  string $block_content Rendered block content.
    18  * @param  array  $block         Block object.
    19  * @return string                Filtered block content.
     17 * @param string $block_content Rendered block content.
     18 * @param array  $block         Block object.
     19 *
     20 * @return string Filtered block content.
    2021 */
    2122function wp_restore_group_inner_container( $block_content, $block ) {
    2223    $group_with_inner_container_regex = '/(^\s*<div\b[^>]*wp-block-group(\s|")[^>]*>)(\s*<div\b[^>]*wp-block-group__inner-container(\s|")[^>]*>)((.|\S|\s)*)/';
    2324
     25    // TODO: Add check for theme.json presence.
    2426    if (
    2527        'core/group' !== $block['blockName'] ||
Note: See TracChangeset for help on using the changeset viewer.