mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Admin: fix repositioning notices
Fixes #34294. Props afercia. Built from https://develop.svn.wordpress.org/trunk@35238 git-svn-id: http://core.svn.wordpress.org/trunk@35204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10d94ea673
commit
47e364de42
@ -369,16 +369,7 @@ $(document).ready( function() {
|
||||
});
|
||||
}
|
||||
|
||||
// Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline.
|
||||
$firstHeading = $( '.wrap > h1:first' );
|
||||
|
||||
// Back compatibility: if there is no H1, apply to first H2.
|
||||
if ( ! $firstHeading.length ) {
|
||||
$firstHeading = $( '.wrap h2:first' );
|
||||
}
|
||||
|
||||
$firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' );
|
||||
$( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading );
|
||||
$( 'div.updated, div.error, div.notice' ).not( '.inline' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
|
||||
|
||||
// Make notices dismissible
|
||||
$( '.notice.is-dismissible' ).each( function() {
|
||||
|
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
@ -345,8 +345,10 @@ window.autosave = function() {
|
||||
excerpt: excerpt
|
||||
};
|
||||
|
||||
$notice = $( '#local-storage-notice' );
|
||||
$('.wrap h2').first().after( $notice.addClass( 'notice-warning' ).show() );
|
||||
$notice = $( '#local-storage-notice' )
|
||||
.insertAfter( $( '.wrap' ).children( ':header' ).first() )
|
||||
.addClass( 'notice-warning' )
|
||||
.show();
|
||||
|
||||
$notice.on( 'click.autosave-local', function( event ) {
|
||||
var $target = $( event.target );
|
||||
|
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
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35237';
|
||||
$wp_version = '4.4-alpha-35238';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user