[wp-trac] [WordPress Trac] #61877: Block Styles: Ensure unique classname generation for variations
WordPress Trac
noreply at wordpress.org
Thu Aug 29 05:39:38 UTC 2024
#61877: Block Styles: Ensure unique classname generation for variations
---------------------------------------+------------------------------
Reporter: aaronrobertshaw | Owner: ramonopoly
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: gutenberg-merge has-patch | Focuses:
---------------------------------------+------------------------------
Changes (by ramonopoly):
* owner: (none) => ramonopoly
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"58951" 58951]:
{{{
#!CommitTicketReference repository="" revision="58951"
Block Styles: Ensure unique classname generation for variations
This commit simplifies block style variation class name generation to
ensure unique class names by replacing the hashing of block attributes in
the block style variation class names with a call to `wp_unique_id`.
Doing so avoids potential for non-unique class names and conflicting
styles when exact copies of a block are inserted via a repeated pattern.
Props aaronrobertshaw, martinkrcho, mukesh27, peterwilsoncc, ramonopoly.
Fixes #61877.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61877#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list