Changeset 50620
- Timestamp:
- 03/31/2021 05:50:50 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r50570 r50620 40 40 wp_enqueue_script( 'heartbeat' ); 41 41 wp_enqueue_script( 'wp-edit-post' ); 42 wp_enqueue_script( 'wp-format-library' );43 42 44 43 $rest_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; … … 399 398 */ 400 399 wp_enqueue_style( 'wp-edit-post' ); 401 wp_enqueue_style( 'wp-format-library' );402 400 403 401 /** -
trunk/src/wp-includes/default-filters.php
r50375 r50620 539 539 add_action( 'admin_enqueue_scripts', 'wp_common_block_scripts_and_styles' ); 540 540 add_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' ); 541 add_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_format_library_assets' ); 541 542 add_action( 'enqueue_block_editor_assets', 'wp_enqueue_registered_block_scripts_and_styles' ); 542 543 add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' ); -
trunk/src/wp-includes/script-loader.php
r50619 r50620 2325 2325 2326 2326 /** 2327 * Enqueues the assets required for the format library within the block editor. 2328 * 2329 * @since 5.8.0 2330 */ 2331 function wp_enqueue_editor_format_library_assets() { 2332 wp_enqueue_script( 'wp-format-library' ); 2333 wp_enqueue_style( 'wp-format-library' ); 2334 } 2335 2336 /** 2327 2337 * Enqueues the assets required for the block directory within the block editor. 2328 2338 *
Note: See TracChangeset
for help on using the changeset viewer.