Admin: fix repositioning of notices when the first header is not an immediate children of .wrap
.
Props DvanKooten for the initial patch. Fixes #35047 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@36134 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a1b31b59c4
commit
b2b14848d6
@ -397,7 +397,7 @@ $document.ready( function() {
|
||||
* The `.below-h2` class is here just for backwards compatibility with plugins
|
||||
* that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
|
||||
*/
|
||||
$( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
|
||||
$( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap h1, .wrap h2' ).first() );
|
||||
|
||||
// Make notices dismissible
|
||||
function makeNoticesDismissible() {
|
||||
|
@ -346,7 +346,7 @@ window.autosave = function() {
|
||||
};
|
||||
|
||||
$notice = $( '#local-storage-notice' )
|
||||
.insertAfter( $( '.wrap' ).children( ':header' ).first() )
|
||||
.insertAfter( $( '.wrap h1, .wrap h2' ).first() )
|
||||
.addClass( 'notice-warning' )
|
||||
.show();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user