Changeset 56570 for trunk/src/wp-admin/site-editor.php
- Timestamp:
- 09/14/2023 12:52:45 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/site-editor.php
r56559 r56570 161 161 <div class="wrap hide-if-js site-editor-no-js"> 162 162 <h1 class="wp-heading-inline"><?php _e( 'Edit site' ); ?></h1> 163 <div class="notice notice-error"> 164 <p> 165 <?php 166 /** 167 * Filters the message displayed in the site editor interface when JavaScript is 168 * not enabled in the browser. 169 * 170 * @since 6.3.0 171 * 172 * @param string $message The message being displayed. 173 * @param WP_Post $post The post being edited. 174 */ 175 echo apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post ); 176 ?> 177 </p> 178 </div> 163 <?php 164 /** 165 * Filters the message displayed in the site editor interface when JavaScript is 166 * not enabled in the browser. 167 * 168 * @since 6.3.0 169 * 170 * @param string $message The message being displayed. 171 * @param WP_Post $post The post being edited. 172 */ 173 $message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post ); 174 wp_admin_notice( 175 $message, 176 array( 177 'type' => 'error', 178 'additional_classes' => array( 'hide-if-js' ), 179 ) 180 ); 181 ?> 179 182 </div> 180 183 </div>
Note: See TracChangeset
for help on using the changeset viewer.