]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/common.js
WordPress 4.4.2-scripts
[autoinstalls/wordpress.git] / wp-admin / js / common.js
index 796e1400f44df76e1c448d5805764a9ec811ec1b..9d7fa4158cf1cf920318ad312958d00a4512fcc4 100644 (file)
@@ -397,7 +397,7 @@ $document.ready( function() {
         * The `.below-h2` class is here just for backwards compatibility with plugins
         * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
         */
-       $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap' ).children( ':header' ).first() );
+       $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap h1, .wrap h2' ).first() );
 
        // Make notices dismissible
        function makeNoticesDismissible() {