diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 96ba2a96d6..c574e56199 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -29,6 +29,9 @@ if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, wp_enqueue_media( array( 'post' => $post_ID ) ); } +// Add the local autosave notice HTML +add_action( 'admin_footer', '_local_storage_notice' ); + $messages = array(); $messages['post'] = array( 0 => '', // Unused. Messages start at index 1. diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 4b0ace0579..5b609e45ba 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -665,29 +665,3 @@ function wp_refresh_post_nonces( $response, $data, $screen_id ) { return $response; } add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 ); - -/** - * Output the HTML for restoring the post data from DOM storage - * - * @since 3.6 - * @access private - */ -function _local_storage_notice() { - $screen = get_current_screen(); - if ( ! $screen || 'post' != $screen->id ) - return; - - ?> -
- + +