Make WordPress Core


Ignore:
Timestamp:
04/01/2021 11:44:54 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Editor: Consolidate enqueueing block editor assets in wp-includes/default-filters.php.

Follow-up to [44157], [46111], [48537], [50620].

See #52920.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r50620 r50629  
    23252325
    23262326/**
     2327 * Enqueues the assets required for the block directory within the block editor.
     2328 *
     2329 * @since 5.5.0
     2330 */
     2331function wp_enqueue_editor_block_directory_assets() {
     2332    wp_enqueue_script( 'wp-block-directory' );
     2333    wp_enqueue_style( 'wp-block-directory' );
     2334}
     2335
     2336/**
    23272337 * Enqueues the assets required for the format library within the block editor.
    23282338 *
     
    23322342    wp_enqueue_script( 'wp-format-library' );
    23332343    wp_enqueue_style( 'wp-format-library' );
    2334 }
    2335 
    2336 /**
    2337  * Enqueues the assets required for the block directory within the block editor.
    2338  *
    2339  * @since 5.5.0
    2340  */
    2341 function wp_enqueue_editor_block_directory_assets() {
    2342     wp_enqueue_script( 'wp-block-directory' );
    2343     wp_enqueue_style( 'wp-block-directory' );
    23442344}
    23452345
Note: See TracChangeset for help on using the changeset viewer.