Make WordPress Core


Ignore:
Timestamp:
03/18/2025 12:41:31 PM (2 months ago)
Author:
joemcgill
Message:

Editor: Fix layout support classes to be generated with a stable ID.

This fixes a bug reported in https://github.com/WordPress/gutenberg/issues/67308 related to the Interactivity API's client-side navigation feature by replacing the incrementally generated IDs with stable hashes derived from the block's layout style definition.

Fixes #62985.
Props darerodz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/blocks/fixtures/core__columns.server.html

    r55956 r60038  
    11
    2 <div class="wp-block-columns has-3-columns is-layout-flex wp-container-1 wp-block-columns-is-layout-flex">
     2<div class="wp-block-columns has-3-columns is-layout-flex wp-container-1d6595d7 wp-block-columns-is-layout-flex">
    33   
    44    <div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
Note: See TracChangeset for help on using the changeset viewer.