Make WordPress Core


Ignore:
Timestamp:
12/06/2021 06:18:27 AM (3 years ago)
Author:
noisysocks
Message:

Update @wordpress packages

Update packages to include these bug fixes from Gutenberg:

  • Gallery block: turn on auto-migration of v1 Gallery blocks to v2 format when edited
  • Add accessible labelling to submenu buttons.
  • Improve performance of wp_navigation lookup.
  • Various inline docblock corrections
  • Use core version of template and template part post types and REST endpoints for WP 5.9, with back compat for 5.8
  • Gradients: Enable adding custom gradient when gradients are disabled
  • Custom color palette: add default color name
  • Color Picker: Re-instate debounce and controlled value to fix issue with gradient picker
  • Add aria-current="page" to active navigation item
  • Site Editor: Templat list fallback to slug
  • Fix: Custom color picker popover position
  • Fix: php 5.6 error in theme JSON class.
  • Update the WP_Theme_JSON_Gutenberg class to be like the core one
  • Update the WP_Theme_JSON_Resolver_Gutenberg class to be like the core one
  • Move Global Styles code to lib/compat/wordpress-5.9 folder
  • E2E Tests: Fix failing image e2e test by waiting for required element
  • Navigation: Try removing absorb toolbar prop.
  • Navigation: Fix navigation justifications.
  • Fix wordbreak for URLs
  • Polish unset color indicator.
  • Template revert flow: Make label description source agnostic
  • [Block Library - Navigation]: Fix vertical layout
  • Add: Corners to custom color picker popover
  • Add: Missing margin to the color picker clear button
  • Gradient: Fix clearing a custom gradient from throwing a React warning
  • [Block Library]: Rename Query Pagination blocks
  • PHP Unit Tests: Use global transients
  • Remove CSS that causes conflict with theme.json
  • Add actions which fire during the loading process of block template parts
  • Fix usage of useSetting('color.palette')
  • Update micromodal, include click-through fix
  • Site Editor: Remove unused PHP code
  • Don't try and render unstable location if Nav block has ID
  • Fix gutenberg prefixed function references in core
  • Card: support the extraSmall option for the size prop
  • Gallery block: enable the new gallery block by default if running in core
  • Block fixtures: Change port to 8889 to placate KSES
  • Full Site Editing: Remove block template resolution unit tests
  • Site Editor: Sync export API

See #54487.

File:
1 edited

Legend:

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

    r52275 r52324  
    5151                $area = $area_terms[0]->name;
    5252            }
     53            /**
     54             * Fires when a block template part is loaded from a template post stored in the database.
     55             *
     56             * @since 5.9.0
     57             *
     58             * @param string  $template_part_id   The requested template part namespaced to the theme.
     59             * @param array   $attributes         The block attributes.
     60             * @param WP_Post $template_part_post The template part post object.
     61             * @param string  $content            The template part content.
     62             */
     63            do_action( 'render_block_core_template_part_post', $template_part_id, $attributes, $template_part_post, $content );
    5364        } else {
    5465            // Else, if the template part was provided by the active theme,
     
    6172                        ? _inject_theme_attribute_in_block_template_content( $content )
    6273                        : '';
     74            }
     75
     76            if ( '' !== $content && null !== $content ) {
     77                /**
     78                 * Fires when a block template part is loaded from a template part in the theme.
     79                 *
     80                 * @since 5.9.0
     81                 *
     82                 * @param string $template_part_id        The requested template part namespaced to the theme.
     83                 * @param array  $attributes              The block attributes.
     84                 * @param string $template_part_file_path Absolute path to the template path.
     85                 * @param string $content                 The template part content.
     86                 */
     87                do_action( 'render_block_core_template_part_file', $template_part_id, $attributes, $template_part_file_path, $content );
     88            } else {
     89                /**
     90                 * Fires when a requested block template part does not exist in the database nor in the theme.
     91                 *
     92                 * @since 5.9.0
     93                 *
     94                 * @param string $template_part_id        The requested template part namespaced to the theme.
     95                 * @param array  $attributes              The block attributes.
     96                 * @param string $template_part_file_path Absolute path to the not found template path.
     97                 */
     98                do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path );
    6399            }
    64100        }
Note: See TracChangeset for help on using the changeset viewer.