Make WordPress Core


Ignore:
Timestamp:
09/08/2026 04:40:56 PM (2 months ago)
Author:
desrosj
Message:

General: Bump the pinned hash for Gutenberg to 5a4cc50.

This updates the pinned commit hash of the Gutenberg repository from 658c8cbe89db5d90279051d3bb816ca210fe4646 (version 23.8.0) to 5a4cc502d43016f1efa66f8f6d9bd3bb4bb24d85, which contains the latest changes up until the Node.js version was bumped from 20.x to 24.x.

A full list of changes included in this commit can be found on GitHub: ​https://github.com/WordPress/gutenberg/compare/658c8cbe89db5d90279051d3bb816ca210fe4646..5a4cc502d43016f1efa66f8f6d9bd3bb4bb24d85.

See #66070.

File:
1 edited

Legend:

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

    r62738 r63538  
    9797        if ( $processor->next_tag( 'svg' ) ) {
    9898                if ( ! empty( $styles['css'] ) ) {
    99                         $processor->set_attribute( 'style', $styles['css'] );
     99                        // Merge with the SVG's intrinsic style (e.g. `fill: none` on
     100                        // stroke-based icons) so it is preserved. The block styles come last
     101                        // so they win on any conflicting property.
     102                        $existing_style = $processor->get_attribute( 'style' );
     103                        $trimmed_style  = is_string( $existing_style )
     104                                ? rtrim( trim( $existing_style ), ';' )
     105                                : '';
     106                        $merged_style   = '' !== $trimmed_style
     107                                ? $trimmed_style . '; ' . $styles['css']
     108                                : $styles['css'];
     109                        $processor->set_attribute( 'style', $merged_style );
    100110                }
    101111
    … …  
    116126                        $current_style = $processor->get_attribute( 'style' ) ?? '';
    117127                        $rotation_css  = 'rotate: ' . $rotation . 'deg;';
    118                         if ( $current_style ) {
    119                                 $processor->set_attribute( 'style', $current_style . ' ' . $rotation_css );
    120                         } else {
    121                                 $processor->set_attribute( 'style', $rotation_css );
    122                         }
     128                        $trimmed_style = is_string( $current_style )
     129                                ? rtrim( trim( $current_style ), ';' )
     130                                : '';
     131                        $merged_style  = '' !== $trimmed_style
     132                                ? $trimmed_style . '; ' . $rotation_css
     133                                : $rotation_css;
     134                        $processor->set_attribute( 'style', $merged_style );
    123135                }
    124136
Note: See TracChangeset for help on using the changeset viewer.