Move _local_storage_notice() to admin/includes/template.php. props azaozz, see #24756.

git-svn-id: https://develop.svn.wordpress.org/trunk@24762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-07-22 05:09:49 +00:00
parent 56f1a3fa32
commit 841d93ed30
3 changed files with 24 additions and 26 deletions

View File

@@ -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.