Make WordPress Core


Ignore:
Timestamp:
06/17/2024 09:42:57 AM (2 years ago)
Author:
oandregal
Message:

Global styles: prevent duplicate CSS for block style variations.

Props aaronrobertshaw, mukesh27, ramonopoly, isabel_brison, oandregal.
Fixes #61443.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/block-style-variations.php

    r58413 r58422  
    137137                array( 'custom' ),
    138138                array(
    139                         'skip_root_layout_styles' => true,
    140                         'scope'                   => ".$class_name",
     139                        'include_block_style_variations' => true,
     140                        'skip_root_layout_styles'        => true,
     141                        'scope'                          => ".$class_name",
    141142                )
    142143        );
Note: See TracChangeset for help on using the changeset viewer.