Make WordPress Core

Changeset 35516


Ignore:
Timestamp:
11/04/2015 09:26:58 PM (9 years ago)
Author:
afercia
Message:

Admin: Ensure notices with the below-h2 class are not repositioned after [35238].

Keeps the .below-h2 class for backwards compatibility with plugins that are (incorrectly) using it. Plugins should use .inline instead.

Props stephenharris.
Fixes #34570. See #34294.

File:
1 edited

Legend:

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

    r35318 r35516  
    394394    }
    395395
    396     $( 'div.updated, div.error, div.notice' ).not( '.inline' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
     396    /*
     397     * The `.below-h2` class is here just for backwards compatibility with plugins
     398     * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
     399     */
     400    $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
    397401
    398402    // Make notices dismissible
Note: See TracChangeset for help on using the changeset viewer.