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.
Built from https://develop.svn.wordpress.org/trunk@35516


git-svn-id: http://core.svn.wordpress.org/trunk@35480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2015-11-04 21:27:26 +00:00
parent 973223ad5f
commit c443d45708
3 changed files with 7 additions and 3 deletions

View File

@ -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() {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta2-35515';
$wp_version = '4.4-beta2-35516';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.