Skip to content

Commit e6f8650

Browse files
committed
Avoid edge case for printing empty table
1 parent 3dd2f69 commit e6f8650

File tree

1 file changed

+4
-0
lines changed
  • includes/site-health/audit-autoloaded-options

1 file changed

+4
-0
lines changed

includes/site-health/audit-autoloaded-options/helper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ function perflab_aao_get_disabled_autoloaded_options_table(): string {
222222
}
223223
}
224224

225+
if ( count( $disabled_options_summary ) === 0 ) {
226+
return '';
227+
}
228+
225229
arsort( $disabled_options_summary );
226230

227231
$html_table = sprintf(

0 commit comments

Comments
 (0)