Make WordPress Core


Ignore:
Timestamp:
01/07/2019 08:39:56 PM (6 years ago)
Author:
desrosj
Message:

Block Editor: Display notice to the user when JavaScript is disabled.

Currently, when viewing the block editor with JavaScript disabled, the user sees a blank admin page with the admin menu sidebar. This adds an admin notice informing the user that JavaScript is required for the new block editor.

Props mkaz, pento, azaozz, ocean90, desrosj.
Fixes #45453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/post.php

    r44295 r44437  
    155155        }
    156156
     157        $title = $post_type_object->labels->edit_item;
     158
    157159        /**
    158160         * Allows replacement of the editor.
     
    180182        }
    181183
    182         $title = $post_type_object->labels->edit_item;
    183         $post  = get_post( $post_id, OBJECT, 'edit' );
     184        $post = get_post( $post_id, OBJECT, 'edit' );
    184185
    185186        if ( post_type_supports( $post_type, 'comments' ) ) {
Note: See TracChangeset for help on using the changeset viewer.