From 367e45647277aee27f0914688166d031c3672116 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 16 Jul 2013 13:03:22 +0000 Subject: [PATCH] Only add the autosave notice to the first `

` on the page. Props azaozz. See #24755. git-svn-id: http://core.svn.wordpress.org/trunk@24710 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/autosave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/autosave.js b/wp-includes/js/autosave.js index c4157d552e..c74f8404a1 100644 --- a/wp-includes/js/autosave.js +++ b/wp-includes/js/autosave.js @@ -636,7 +636,7 @@ wp.autosave.local = { this.undo_post_data = wp.autosave.getPostData(); notice = $('#local-storage-notice'); - $('.wrap h2').after( notice.addClass('updated').show() ); + $('.wrap h2').first().after( notice.addClass('updated').show() ); notice.on( 'click', function(e) { var target = $( e.target );