Make WordPress Core


Ignore:
Timestamp:
07/14/2026 05:03:51 PM (3 months ago)
Author:
wildworks
Message:

General: Bump the pinned hash for Gutenberg to v23.5.0.

This updates the pinned commit hash of the Gutenberg repository from 98a796c8780c480ef7bcfe03c42302d9564d785c (version 23.4.0) to b5574edc8a952b2f1e528693761a97b1b3b580eb (version 23.5.0).

A full list of changes included in this commit can be found on GitHub: ​https://github.com/WordPress/gutenberg/compare/v23.4.0..v23.5.0.

The following commits are included:

Props desrosj, wildworks.
Fixes #65589.

File:
1 edited

Legend:

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

    r62143 r62738  
    1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // Needed for WP_Block_Cloner helper class.
     1<?php
    22/**
    33 * Server-side rendering of the `core/block` block.
    … …  
    8484        $block_instance->parsed_block['innerBlocks']  = parse_blocks( $content );
    8585        $block_instance->parsed_block['innerContent'] = array_fill( 0, count( $block_instance->parsed_block['innerBlocks'] ), null );
    86         if ( method_exists( $block_instance, 'refresh_context_dependents' ) ) {
    87                 // WP_Block::refresh_context_dependents() was introduced in WordPress 6.8.
    88                 $block_instance->refresh_context_dependents();
    89         } else {
    90                 // This branch can be removed once Gutenberg requires WordPress 6.8 or later.
    91                 if ( ! class_exists( 'WP_Block_Cloner' ) ) {
    92                         // phpcs:ignore Gutenberg.Commenting.SinceTag.MissingClassSinceTag
    93                         class WP_Block_Cloner extends WP_Block {
    94                                 /**
    95                                  * Static methods of subclasses have access to protected properties
    96                                  * of instances of the parent class.
    97                                  * In this case, this gives us access to `available_context` and `registry`.
    98                                  */
    99                                 // phpcs:ignore Gutenberg.Commenting.SinceTag.MissingMethodSinceTag
    100                                 public static function clone_instance( $instance ) {
    101                                         return new WP_Block(
    102                                                 $instance->parsed_block,
    103                                                 $instance->available_context,
    104                                                 $instance->registry
    105                                         );
    106                                 }
    107                         }
    108                 }
    109                 $block_instance = WP_Block_Cloner::clone_instance( $block_instance );
    110         }
     86        $block_instance->refresh_context_dependents();
    11187
    11288        $content = $block_instance->render( array( 'dynamic' => false ) );
Note: See TracChangeset for help on using the changeset viewer.