Make WordPress Core

Ticket #34570: 34570.diff

File 34570.diff, 550 bytes (added by stephenharris, 10 years ago)

Do not move notices with .below-h2 above the page title

  • src/wp-admin/js/common.js

    diff --git src/wp-admin/js/common.js src/wp-admin/js/common.js
    index b214228..04a3dea 100644
    $document.ready( function() { 
    393393                });
    394394        }
    395395
    396         $( 'div.updated, div.error, div.notice' ).not( '.inline' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
     396        $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
    397397
    398398        // Make notices dismissible
    399399        $( '.notice.is-dismissible' ).each( function() {