Admin: fix repositioning of notices when the first header is not an immediate children of .wrap.

Merges [36134] to the 4.4 branch.
Props afercia, DvanKooten.
Fixes #35047.

Built from https://develop.svn.wordpress.org/branches/4.4@36144


git-svn-id: http://core.svn.wordpress.org/branches/4.4@36110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2016-01-02 03:32:23 +00:00
parent 8232ed4640
commit a048514d43
5 changed files with 5 additions and 5 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

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

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.1-alpha-36133';
$wp_version = '4.4.1-alpha-36144';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.