Make WordPress Core

Changeset 58850


Ignore:
Timestamp:
08/05/2024 06:39:21 AM (6 weeks ago)
Author:
talldanwp
Message:

Block Styles: Fix ordering of stylesheets when a style variation is applied.

Adjusts the dependency order to ensure stylesheets are output in the correct order.

Syncs the PHP changes from https://github.com/WordPress/gutenberg/pull/63918.

Props talldanwp, aaronrobertshaw, andrewserong, aristath, mukesh27, ramonopoly, ytfeldrawkcab.
Fixes #61748.

File:
1 edited

Legend:

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

    r58691 r58850  
    197197    }
    198198
    199     wp_register_style( 'block-style-variation-styles', false, array( 'global-styles', 'wp-block-library' ) );
     199    wp_register_style( 'block-style-variation-styles', false, array( 'wp-block-library', 'global-styles' ) );
    200200    wp_add_inline_style( 'block-style-variation-styles', $variation_styles );
    201201
Note: See TracChangeset for help on using the changeset viewer.