Make WordPress Core

Changeset 36144


Ignore:
Timestamp:
01/02/2016 03:31:28 AM (9 years ago)
Author:
dd32
Message:

Admin: fix repositioning of notices when the first header is not an immediate children of .wrap.

Merges [36134] to the 4.4 branch.
Props afercia, DvanKooten.
Fixes #35047.

Location:
branches/4.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

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

    r35681 r36144  
    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
  • branches/4.4/src/wp-includes/js/autosave.js

    r35238 r36144  
    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.