Make WordPress Core


Ignore:
Timestamp:
05/24/2021 05:38:59 PM (4 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Add Global Styles support using theme.json file.

This is the second piece of landing the theme.json processing in WordPress core.
It includes the mechanism that outputs the CSS styles of a theme.json file.

Props nosolosw, youknowriad.
See #53175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r50836 r50973  
    536536add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    537537add_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
     538add_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
    538539add_action( 'admin_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    539540add_action( 'admin_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
Note: See TracChangeset for help on using the changeset viewer.