Make WordPress Core


Ignore:
Timestamp:
07/21/2020 03:36:17 PM (5 years ago)
Author:
desrosj
Message:

Editor: Ensure the required assets for the block directory are enqueued.

This fixes an issue where the block directory appears unstyled due to the stylesheets not being enqueued.

Props ryelle, timothyblynjacobs, earnjam.
Fixes #50661.

File:
1 edited

Legend:

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

    r48533 r48537  
    517517add_action( 'enqueue_block_assets', 'enqueue_block_styles_assets', 30 );
    518518add_action( 'enqueue_block_editor_assets', 'enqueue_editor_block_styles_assets' );
     519add_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' );
    519520
    520521add_action( 'wp_default_styles', 'wp_default_styles' );
Note: See TracChangeset for help on using the changeset viewer.