Only add the autosave notice to the first `<h2>` on the page.
Props azaozz. See #24755. git-svn-id: http://core.svn.wordpress.org/trunk@24710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a65a4e664d
commit
367e456472
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue