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

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

See #52920.

git-svn-id: https://develop.svn.wordpress.org/trunk@50629 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-04-01 11:44:54 +00:00
parent 2a58c2a56b
commit 58f6acdd33
2 changed files with 15 additions and 15 deletions

View File

@@ -2323,16 +2323,6 @@ function enqueue_editor_block_styles_assets() {
wp_enqueue_script( 'wp-block-styles' );
}
/**
* Enqueues the assets required for the format library within the block editor.
*
* @since 5.8.0
*/
function wp_enqueue_editor_format_library_assets() {
wp_enqueue_script( 'wp-format-library' );
wp_enqueue_style( 'wp-format-library' );
}
/**
* Enqueues the assets required for the block directory within the block editor.
*
@@ -2343,6 +2333,16 @@ function wp_enqueue_editor_block_directory_assets() {
wp_enqueue_style( 'wp-block-directory' );
}
/**
* Enqueues the assets required for the format library within the block editor.
*
* @since 5.8.0
*/
function wp_enqueue_editor_format_library_assets() {
wp_enqueue_script( 'wp-format-library' );
wp_enqueue_style( 'wp-format-library' );
}
/**
* Sanitizes an attributes array into an attributes string to be placed inside a `<script>` tag.
*