Ticket #34294: 34294.3.patch
File 34294.3.patch, 1.4 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/common.js
369 369 }); 370 370 } 371 371 372 // Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline. 373 $firstHeading = $( '.wrap > h1:first' ); 374 375 // Back compatibility: if there is no H1, apply to first H2. 376 if ( ! $firstHeading.length ) { 377 $firstHeading = $( '.wrap h2:first' ); 378 } 379 380 $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' ); 381 $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading ); 372 $( 'div.updated, div.error, div.notice' ).not( '.inline' ).insertBefore( $( '.wrap' ).find( 'form' ).first() ); 382 373 383 374 // Make notices dismissible 384 375 $( '.notice.is-dismissible' ).each( function() { -
src/wp-includes/js/autosave.js
346 346 }; 347 347 348 348 $notice = $( '#local-storage-notice' ); 349 $( '.wrap h2').first().after( $notice.addClass( 'notice-warning' ).show() );349 $( '.wrap' ).find( 'form' ).first().before( $notice.addClass( 'notice-warning' ).show() ); 350 350 351 351 $notice.on( 'click.autosave-local', function( event ) { 352 352 var $target = $( event.target );