Skip to content

Commit

Permalink
Fix plugins dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar authored and jakaria-istauk committed Dec 28, 2023
1 parent 2c1e341 commit a3757e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
</h2>

<select id="plugin-check__plugins-dropdown" name="plugin_check_plugins">
<option value=""><?php esc_html_e( 'Select Plugin', 'plugin-check' ); ?></option>
<?php if ( 1 !== count( $available_plugins ) ) { ?>
<option value=""><?php esc_html_e( 'Select Plugin', 'plugin-check' ); ?></option>
<?php } ?>
<?php foreach ( $available_plugins as $plugin_basename => $available_plugin ) { ?>
<option value="<?php echo esc_attr( $plugin_basename ); ?>"<?php selected( $selected_plugin_basename, $plugin_basename ); ?>>
<?php echo esc_html( $available_plugin['Name'] ); ?>
Expand Down

0 comments on commit a3757e7

Please sign in to comment.