mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 00:57:40 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@36134 git-svn-id: http://core.svn.wordpress.org/trunk@36100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7bc4b19203
commit
27e5599bf7
@ -397,7 +397,7 @@ $document.ready( function() {
|
|||||||
* The `.below-h2` class is here just for backwards compatibility with plugins
|
* 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.
|
* 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
|
// Make notices dismissible
|
||||||
function makeNoticesDismissible() {
|
function makeNoticesDismissible() {
|
||||||
|
2
wp-admin/js/common.min.js
vendored
2
wp-admin/js/common.min.js
vendored
File diff suppressed because one or more lines are too long
@ -346,7 +346,7 @@ window.autosave = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$notice = $( '#local-storage-notice' )
|
$notice = $( '#local-storage-notice' )
|
||||||
.insertAfter( $( '.wrap' ).children( ':header' ).first() )
|
.insertAfter( $( '.wrap h1, .wrap h2' ).first() )
|
||||||
.addClass( 'notice-warning' )
|
.addClass( 'notice-warning' )
|
||||||
.show();
|
.show();
|
||||||
|
|
||||||
|
2
wp-includes/js/autosave.min.js
vendored
2
wp-includes/js/autosave.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36132';
|
$wp_version = '4.5-alpha-36134';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user