Only add the autosave notice to the first <h2>
on the page.
Props azaozz. See #24755. git-svn-id: https://develop.svn.wordpress.org/trunk@24710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef299cdf7c
commit
4f2dc7f00f
@ -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
Block a user