]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/common.js
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-admin / js / common.js
index 9cd1fff910a5d8245cbad01b81574461afb61dc3..200d3e47809d1c7f4a84eb719940fe2f1787139d 100644 (file)
@@ -394,7 +394,7 @@ $document.ready( function() {
        }
 
        /*
-        * The `.below-h2` class is here just for backwards compatibility with plugins
+        * The `.below-h2` class is here just for backward 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 h1, .wrap h2' ).first() );
@@ -421,9 +421,7 @@ $document.ready( function() {
                });
        }
 
-       $document.on( 'wp-plugin-update-error', function() {
-               makeNoticesDismissible();
-       });
+       $document.on( 'wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error', makeNoticesDismissible );
 
        // Init screen meta
        screenMeta.init();