X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/b925718b4bf2dd47a8429f844d0a255ca6e35bd1..b22765f41bf0b2021b9beb9120ee0ac91fa89292:/wp-admin/js/common.js diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 9cd1fff9..200d3e47 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -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();