WordPress/wp-includes/block-supports
ramonopoly 94b9ccd020 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.


Built from https://develop.svn.wordpress.org/trunk@58951


git-svn-id: http://core.svn.wordpress.org/trunk@58347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-08-29 05:41:10 +00:00
..
align.php
background.php Background images: resolve theme.json dynamic ref values and ensure appropriate style default values 2024-08-26 05:40:16 +00:00
block-style-variations.php Block Styles: Ensure unique classname generation for variations 2024-08-29 05:41:10 +00:00
border.php
colors.php
custom-classname.php
dimensions.php Editor: introduce `dimensions.aspectRatio` block support. 2024-01-31 02:54:17 +00:00
duotone.php Editor: fix duotone filter for aligned images on classic themes. 2024-06-04 01:48:17 +00:00
elements.php Editor: Fix coding standards and move deprecated function to correct file. 2024-05-03 05:25:12 +00:00
generated-classname.php
layout.php Block Themes: Fix invalid css for nested fullwidth layouts with zero padding applied 2024-07-18 06:50:10 +00:00
position.php
settings.php
shadow.php Editor: Add `__experimentalSkipSerialization` support to shadow. 2024-06-03 23:36:14 +00:00
spacing.php
typography.php Fluid typography: allow individual preset overrides 2024-08-29 05:22:14 +00:00
utils.php