Make WordPress Core


Ignore:
Timestamp:
11/11/2021 07:41:38 AM (3 years ago)
Author:
noisysocks
Message:

Update @wordpress packages

Update packages to include these bug fixes from Gutenberg:

  • Group - Fix inner container regexes using fixed div tag
  • Image block: Make sure the Image block border radius is inherited if the image is linked
  • Navigation: Small fixes
  • FSE: Add template_type guards
  • Template Part Block: Add some guards
  • Fix getEntityRecords to ensure resolution on REST API failure
  • Ensure menus before map operation in Nav block
  • Link editing: Account for link anchor no longer being present when generating unique link instance key
  • Navigation: Hide post attributes meta box
  • Fix failing tests and compatibility with 5.9.
  • Fix missing <MainDashboardButton> slot fill in site editor
  • Move WP_REST_Block_Navigation_Areas_Controller from Gutenberg to Core.
  • Fix site editor reset styles in WP 5.9

See #54337.

File:
1 edited

Legend:

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

    r52062 r52135  
    5656            $template_part_file_path = get_theme_file_path( '/block-template-parts/' . $attributes['slug'] . '.html' );
    5757            if ( 0 === validate_file( $attributes['slug'] ) && file_exists( $template_part_file_path ) ) {
    58                 $content = _inject_theme_attribute_in_block_template_content( file_get_contents( $template_part_file_path ) );
     58                $content = file_get_contents( $template_part_file_path );
     59                $content = is_string( $content ) && '' !== $content
     60                        ? _inject_theme_attribute_in_block_template_content( $content )
     61                        : '';
    5962            }
    6063        }
Note: See TracChangeset for help on using the changeset viewer.