From aef1cb9847e9e513e0f4a7a4fe93c54ddabf6168 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 25 Jun 2023 19:52:43 +0000 Subject: [PATCH] Editor: Add no-js fallback for site editor. Add a fallback condition with heading and error notice to handle a no JavaScript state for the site editor, comparable to what already exists in the post editor. Props afercia, joedolson, fencermonir, zebaafiashama, alexstine, rudlinkon. Fixes #56228. git-svn-id: https://develop.svn.wordpress.org/trunk@56025 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 3 ++- src/wp-admin/site-editor.php | 25 ++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 24892a65a1..3452822f32 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -573,7 +573,8 @@ code { margin: 10px 20px 0 2px; } -.wrap.block-editor-no-js { +.wrap.block-editor-no-js, +.wrap.site-editor-no-js { padding-left: 20px; } diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php index 9302c42389..3d4856fa75 100644 --- a/src/wp-admin/site-editor.php +++ b/src/wp-admin/site-editor.php @@ -132,7 +132,30 @@ do_action( 'enqueue_block_editor_assets' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?> -
+
+
+ + +
+

+
+

+ +

+
+
+