Make WordPress Core

Changeset 58423

Timestamp:
06/17/2024 10:06:38 AM (7 weeks ago)
Author:
oandregal
Message:

Global Styles: Avoid unnecessary processing of theme.json variation partials.

Props aaronrobertshaw, oandregal, mukesh27.
See #61451.

File:
1 edited

Legend:

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

    r58422 r58423  
    475475 */
    476476function wp_register_block_style_variations_from_theme() {
     477
     478
     479
     480
     481
     482
     483
     484
     485
     486
     487
     488
     489
     490
     491
     492
     493
    477494    // Partials from `/styles`.
    478495    $variations_partials = WP_Theme_JSON_Resolver::get_style_variations( 'block' );
Note: See TracChangeset for help on using the changeset viewer.