WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/07/2019 08:58:09 PM (9 months 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.

Merges [44437] to the 5.0 branch.
Fixes #45453.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-admin/post.php

    r44050 r44440  
    151151    }
    152152
     153    $title = $post_type_object->labels->edit_item;
     154
    153155    /**
    154156     * Allows replacement of the editor.
     
    175177    }
    176178
    177     $title = $post_type_object->labels->edit_item;
    178     $post = get_post($post_id, OBJECT, 'edit');
     179    $post = get_post( $post_id, OBJECT, 'edit' );
    179180
    180181    if ( post_type_supports($post_type, 'comments') ) {
Note: See TracChangeset for help on using the changeset viewer.