Admin: Ensure notices with the below-h2
class are not repositioned after [35238].
Keeps the `.below-h2` class for backwards compatibility with plugins that are (incorrectly) using it. Plugins should use `.inline` instead. Props stephenharris. Fixes #34570. See #34294. git-svn-id: https://develop.svn.wordpress.org/trunk@35516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7f79d26ca5
commit
3ffaa37727
@ -393,7 +393,11 @@ $document.ready( function() {
|
||||
});
|
||||
}
|
||||
|
||||
$( 'div.updated, div.error, div.notice' ).not( '.inline' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
|
||||
/*
|
||||
* 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() );
|
||||
|
||||
// Make notices dismissible
|
||||
$( '.notice.is-dismissible' ).each( function() {
|
||||
|
Loading…
Reference in New Issue
Block a user