Make WordPress Core

Ticket #56228: 56228.1.diff

File 56228.1.diff, 1.6 KB (added by joedolson, 2 years ago)

Refreshes patch

  • src/wp-admin/css/common.css

     
    572572        margin: 10px 20px 0 2px;
    573573}
    574574
    575 .wrap.block-editor-no-js {
     575.wrap.block-editor-no-js,
     576.wrap.site-editor-no-js {
    576577        padding-left: 20px;
    577578}
    578579
  • src/wp-admin/site-editor.php

     
    158158require_once ABSPATH . 'wp-admin/admin-header.php';
    159159?>
    160160
    161 <div id="site-editor" class="edit-site"></div>
     161<div class="edit-site">
     162        <h1 class="screen-reader-text hide-if-no-js"><?php _e( 'Edit site' ); ?></h1>
     163        <div id="site-editor"></div>
    162164
     165        <?php // JavaScript is disabled. ?>
     166        <div class="wrap hide-if-js site-editor-no-js">
     167                <h1 class="wp-heading-inline"><?php _e( 'Edit site' ); ?></h1>
     168                <div class="notice notice-error notice-alt">
     169                        <p>
     170                                <?php
     171                                        /**
     172                                         * Filters the message displayed in the site editor interface when JavaScript is
     173                                         * not enabled in the browser.
     174                                         *
     175                                         * @since 6.1.0
     176                                         *
     177                                         * @param string  $message The message being displayed.
     178                                         * @param WP_Post $post    The post being edited.
     179                                         */
     180                                        echo apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post );
     181                                ?>
     182                        </p>
     183                </div>
     184        </div>
     185</div>
     186
    163187<?php
    164188
    165189require_once ABSPATH . 'wp-admin/admin-footer.php';