Make WordPress Core

Changeset 48537

Timestamp:
07/21/2020 03:36:17 PM (4 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.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r48527 r48537  
    366366wp_tinymce_inline_scripts();
    367367wp_enqueue_editor();
    368 wp_enqueue_script( 'wp-block-directory' );
     368
    369369
    370370/**
     
    373373wp_enqueue_style( 'wp-edit-post' );
    374374wp_enqueue_style( 'wp-format-library' );
    375 wp_enqueue_style( 'wp-block-directory' );
    376375
    377376/**
  • 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' );
     519
    519520
    520521add_action( 'wp_default_styles', 'wp_default_styles' );
  • trunk/src/wp-includes/script-loader.php

    r48396 r48537  
    14641464        ),
    14651465        'block-library'        => array(),
     1466
    14661467        'components'           => array(),
    14671468        'edit-post'            => array(
     
    15281529        'wp-block-editor',
    15291530        'wp-block-library',
     1531
    15301532        'wp-components',
    15311533        'wp-edit-post',
     
    22702272    wp_enqueue_script( 'wp-block-styles' );
    22712273}
     2274
     2275
     2276
     2277
     2278
     2279
     2280
     2281
     2282
     2283
Note: See TracChangeset for help on using the changeset viewer.