Make WordPress Core

Changeset 24710


Ignore:
Timestamp:
07/16/2013 01:03:22 PM (11 years ago)
Author:
markjaquith
Message:

Only add the autosave notice to the first <h2> on the page.

Props azaozz. See #24755.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js

    r24691 r24710  
    637637
    638638        notice = $('#local-storage-notice');
    639         $('.wrap h2').after( notice.addClass('updated').show() );
     639        $('.wrap h2').first().after( notice.addClass('updated').show() );
    640640
    641641        notice.on( 'click', function(e) {
Note: See TracChangeset for help on using the changeset viewer.