diff --git src/wp-admin/edit-form-blocks.php src/wp-admin/edit-form-blocks.php
index 3dfa4f2f6a..6f24c0debb 100644
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
| 22 | 22 | */ |
| 23 | 23 | global $post_type, $post_type_object, $post, $title, $editor_styles; |
| 24 | 24 | |
| 25 | | if ( ! empty( $post_type_object ) ) { |
| 26 | | $title = $post_type_object->labels->edit_item; |
| 27 | | } |
| 28 | | |
| 29 | 25 | // Flag that we're loading the block editor. |
| 30 | 26 | $current_screen = get_current_screen(); |
| 31 | 27 | $current_screen->is_block_editor( true ); |
| … |
… |
if ( 'auto-draft' === $post->post_status ) {
|
| 115 | 111 | ); |
| 116 | 112 | } |
| 117 | 113 | |
| | 114 | if ( ! empty( $post_type_object ) && ! $is_new_post ) { |
| | 115 | $title = $post_type_object->labels->edit_item; |
| | 116 | } |
| | 117 | |
| 118 | 118 | // Prepare Jed locale data. |
| 119 | 119 | $locale_data = wp_get_jed_locale_data( 'default' ); |
| 120 | 120 | wp_add_inline_script( |