- // Move .updated and .error alert boxes. Don't move boxes designed to be inline.
- $('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2');
- $('div.updated, div.error').not('.below-h2, .inline').insertAfter( $('div.wrap h2:first') );
+ // Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline.
+ $firstHeading = $( 'div.wrap h2:first' );
+ $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' );
+ $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading );