Make WordPress Core

Changeset 36134


Ignore:
Timestamp:
12/31/2015 11:04:38 AM (8 years ago)
Author:
afercia
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/common.js

    r35947 r36134  
    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
  • trunk/src/wp-includes/js/autosave.js

    r35238 r36134  
    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();
Note: See TracChangeset for help on using the changeset viewer.