| 285 | | <form method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;"> |
| 286 | | <input type="hidden" name="verify-delete" value="1" /> |
| 287 | | <input type="hidden" name="action" value="delete-selected" /> |
| 288 | | <?php |
| 289 | | foreach ( (array) $plugins as $plugin ) |
| 290 | | echo '<input type="hidden" name="checked[]" value="' . esc_attr($plugin) . '" />'; |
| 291 | | ?> |
| 292 | | <?php wp_nonce_field('bulk-plugins') ?> |
| 293 | | <?php submit_button( $data_to_delete ? __( 'Yes, Delete these files and data' ) : __( 'Yes, Delete these files' ), 'button', 'submit', false ); ?> |
| 294 | | </form> |
| | 286 | <?php if ( $data_to_delete ) : ?> |
| | 287 | <form method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;"> |
| | 288 | <input type="hidden" name="verify-delete" value="1" /> |
| | 289 | <input type="hidden" name="action" value="delete-selected" /> |
| | 290 | <?php |
| | 291 | foreach ( (array) $plugins as $plugin ) |
| | 292 | echo '<input type="hidden" name="checked[]" value="' . esc_attr($plugin) . '" />'; |
| | 293 | ?> |
| | 294 | <?php wp_nonce_field('bulk-plugins') ?> |
| | 295 | <?php submit_button( __( 'Yes, Delete these files and data' ) , 'button', 'submit', false ); ?> |
| | 296 | </form> |
| | 297 | <form method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;"> |
| | 298 | <input type="hidden" name="verify-delete" value="1" /> |
| | 299 | <input type="hidden" name="action" value="delete-selected-no-uninstall" /> |
| | 300 | <?php |
| | 301 | foreach ( (array) $plugins as $plugin ) |
| | 302 | echo '<input type="hidden" name="checked[]" value="' . esc_attr($plugin) . '" />'; |
| | 303 | ?> |
| | 304 | <?php wp_nonce_field('bulk-plugins') ?> |
| | 305 | <?php submit_button( __( 'Yes, Delete only the files' ) , 'button', 'submit', false ); ?> |
| | 306 | </form> |
| | 307 | <?php else : ?> |
| | 308 | <form method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;"> |
| | 309 | <input type="hidden" name="verify-delete" value="1" /> |
| | 310 | <input type="hidden" name="action" value="delete-selected" /> |
| | 311 | <?php |
| | 312 | foreach ( (array) $plugins as $plugin ) |
| | 313 | echo '<input type="hidden" name="checked[]" value="' . esc_attr($plugin) . '" />'; |
| | 314 | ?> |
| | 315 | <?php wp_nonce_field('bulk-plugins') ?> |
| | 316 | <?php submit_button( __( 'Yes, Delete these files' ), 'button', 'submit', false ); ?> |
| | 317 | </form> |
| | 318 | <?php endif; ?> |