Make WordPress Core


Ignore:
Timestamp:
09/14/2019 06:20:58 PM (5 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Backport block styles server functions from block editor.

This commit backports the block styles functionality added to the block editor in https://github.com/WordPress/gutenberg/pull/16356.

Props: youknowriad, aduth, swissspidy.
Fixes #48039.

File:
1 edited

Legend:

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

    r46066 r46111  
    502502add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
    503503add_filter( 'customize_controls_print_styles', 'wp_resource_hints', 1 );
     504add_action( 'enqueue_block_assets', 'enqueue_block_styles_assets', 30 );
     505add_action( 'enqueue_block_editor_assets', 'enqueue_editor_block_styles_assets' );
    504506
    505507add_action( 'wp_default_styles', 'wp_default_styles' );
Note: See TracChangeset for help on using the changeset viewer.