Make WordPress Core

Ticket #45453: 45453.diff

File 45453.diff, 917 bytes (added by mkaz, 6 years ago)
  • src/wp-admin/edit-form-blocks.php

    diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php
    index ac45596914..d2217e46b8 100644
    a b wp_add_inline_script( 'wp-edit-post', $script ); 
    397397
    398398require_once( ABSPATH . 'wp-admin/admin-header.php' );
    399399?>
    400 
     400<noscript>
     401        <div class="error" style="position:absolute;top:32px;z-index:40"><p>
     402        <?php
     403                printf(
     404                        // Translators: %s: https://wordpress.org/plugins/classic-editor/
     405                        __( 'The Block Editor requires JavaScript. Please try the <a href="%s">Classic Editor plugin</a>.', 'default' ),
     406                        __( 'https://wordpress.org/plugins/classic-editor/', 'default' )
     407                ) ;
     408        ?>
     409        </p></div>
     410</noscript>
    401411<div class="block-editor">
    402412        <h1 class="screen-reader-text"><?php echo esc_html( $post_type_object->labels->edit_item ); ?></h1>
    403413        <div id="editor" class="block-editor__container"></div>