diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php
index ac45596914..db87687ba4 100644
a
|
b
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
400 | 400 | |
401 | 401 | <div class="block-editor"> |
402 | 402 | <h1 class="screen-reader-text"><?php echo esc_html( $post_type_object->labels->edit_item ); ?></h1> |
403 | | <div id="editor" class="block-editor__container"></div> |
| 403 | <div id="editor" class="block-editor__container hide-if-no-js"></div> |
404 | 404 | <div id="metaboxes" class="hidden"> |
405 | 405 | <?php the_block_editor_meta_boxes(); ?> |
406 | 406 | </div> |
| 407 | |
| 408 | <div class="error hide-if-js" style="margin-top: 20px;"> |
| 409 | <p> |
| 410 | <?php |
| 411 | $message = printf( |
| 412 | /** Translators: %s: https://wordpress.org/plugins/classic-editor/ */ |
| 413 | __( 'The block editor requires JavaScript. Please enable JavaScript in your browser settings, or try the <a href="%s">Classic Editor plugin</a>.' ), |
| 414 | __( 'https://wordpress.org/plugins/classic-editor/' ) |
| 415 | ); |
| 416 | |
| 417 | /** |
| 418 | * Filters the message displayed in the block editor interface when JavaScript is |
| 419 | * not enabled in the browser. |
| 420 | * |
| 421 | * @since 5.0.3 |
| 422 | * |
| 423 | * @param string $message The message being displayed. |
| 424 | * @param WP_Post $post The post being edited. |
| 425 | */ |
| 426 | echo apply_filters( 'block_editor_no_javascript_message', $message, $post ); |
| 427 | ?> |
| 428 | </p> |
| 429 | </div> |
| 430 | |
| 431 | |
407 | 432 | </div> |