Make WordPress Core

Ticket #35047: 35047.3.diff

File 35047.3.diff, 1.1 KB (added by afercia, 8 years ago)
  • src/wp-admin/js/common.js

     
    397397         * The `.below-h2` class is here just for backwards compatibility with plugins
    398398         * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
    399399         */
    400         $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
     400        $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap h1, .wrap h2' ).first() );
    401401
    402402        // Make notices dismissible
    403403        function makeNoticesDismissible() {
  • src/wp-includes/js/autosave.js

     
    346346                                };
    347347
    348348                                $notice = $( '#local-storage-notice' )
    349                                         .insertAfter( $( '.wrap' ).children( ':header' ).first() )
     349                                        .insertAfter( $( '.wrap h1, .wrap h2' ).first() )
    350350                                        .addClass( 'notice-warning' )
    351351                                        .show();
    352352