diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php
index 30b5b2d64e..1e46900093 100644
|
a
|
b
|
wp_enqueue_media(
|
| 325 | 325 | 'post' => $post->ID, |
| 326 | 326 | ) |
| 327 | 327 | ); |
| | 328 | wp_tinymce_inline_scripts(); |
| 328 | 329 | wp_enqueue_editor(); |
| 329 | 330 | |
| 330 | 331 | /** |
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 6cf83b6f9c..0736858041 100644
|
a
|
b
|
function wp_default_packages_inline_scripts( &$scripts ) {
|
| 484 | 484 | 'window.wp.oldEditor = window.wp.editor;', |
| 485 | 485 | 'after' |
| 486 | 486 | ); |
| | 487 | } |
| | 488 | |
| | 489 | /** |
| | 490 | * Adds inline scripts required for the TinyMCE in the block editor. |
| | 491 | * |
| | 492 | * @since 5.0.0 |
| | 493 | * |
| | 494 | * @global WP_Scripts $wp_scripts |
| | 495 | */ |
| | 496 | function wp_tinymce_inline_scripts() { |
| | 497 | global $wp_scripts; |
| 487 | 498 | |
| 488 | | // TinyMCE init. |
| 489 | 499 | $tinymce_plugins = array( |
| 490 | 500 | 'charmap', |
| 491 | 501 | 'colorpicker', |
| … |
… |
function wp_default_packages_inline_scripts( &$scripts ) {
|
| 596 | 606 | } |
| 597 | 607 | }'; |
| 598 | 608 | |
| 599 | | $scripts->add_inline_script( 'wp-block-library', $script, 'before' ); |
| | 609 | $wp_scripts->add_inline_script( 'wp-block-library', $script, 'before' ); |
| 600 | 610 | } |
| 601 | 611 | |
| 602 | 612 | /** |