#61440 closed defect (bug) (fixed)
Fix inconsistency of block style variation names causing duplicate UI options
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | 6.6 |
Component: | Editor | Keywords: | gutenberg-merge has-patch |
Focuses: | Cc: |
Description
This ticket tracks the backporting of PHP files for the following Gutenberg fix:
https://github.com/WordPress/gutenberg/pull/62550
These changes prevent an incorrect duplicate block style from appearing within the block styles panel due to inconsistencies between variation names due to case sensitivity.
This fix then also means that variation definitions from different sources get merged and applied correctly.
Change History (3)
This ticket was mentioned in PR #6824 on WordPress/wordpress-develop by @aaronrobertshaw.
8 months ago
#1
- Keywords has-patch added
#2
@
8 months ago
- Owner set to oandregal
- Resolution set to fixed
- Status changed from new to closed
In 58413:
@oandregal commented on PR #6824:
8 months ago
#3
Committed at https://core.trac.wordpress.org/changeset/58413
Note: See
TracTickets for help on using
tickets.
Backports the PHP changes from https://github.com/WordPress/gutenberg/pull/62550 fixing an issue with duplicate block style options appearing and variation definitions from different sources not merging correctly.
Test Instructions:
register_block_style
snippet belowregister_block_style( 'core/group', array( 'name' => 'MyVariation', 'label' => __( 'My variation', 'twentytwentyfour' ), 'inline_style' => ' .is-style-MyVariation { background-color: red; }', ) );
/styles/partial.json
using the following snippetTrac ticket: https://core.trac.wordpress.org/ticket/61440