Skip to content

Commit 093c354

Browse files
committed
remove notice empty div
1 parent b57fbe9 commit 093c354

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wp-admin/includes/update.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,10 @@ function wp_print_admin_notice_templates() {
947947
</div>
948948
</script>
949949
<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+
#>
950954
<div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>">
951955
<p>
952956
<# if ( data.successes ) { #>
@@ -1002,6 +1006,7 @@ function wp_print_admin_notice_templates() {
10021006
</ul>
10031007
<# } #>
10041008
</div>
1009+
<# } #>
10051010
</script>
10061011
<?php
10071012
}

0 commit comments

Comments
 (0)