We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57fbe9 commit 093c354Copy full SHA for 093c354
src/wp-admin/includes/update.php
@@ -947,6 +947,10 @@ function wp_print_admin_notice_templates() {
947
</div>
948
</script>
949
<script id="tmpl-wp-bulk-deletions-admin-notice" type="text/html">
950
+ <#
951
+ // Only render the notice if we have successes or errors.
952
+ if ( data.successes || data.errors ) {
953
+ #>
954
<div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
955
<p>
956
<# if ( data.successes ) { #>
@@ -1002,6 +1006,7 @@ function wp_print_admin_notice_templates() {
1002
1006
</ul>
1003
1007
<# } #>
1004
1008
1009
+ <# } #>
1005
1010
1011
<?php
1012
}
0 commit comments