| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || exit; |
| 3 |
?> |
| 4 |
<div class="imagify-settings-section"> |
| 5 |
<h2 class="imagify-options-title"><?php esc_html_e( 'Troubleshooting', 'imagify' ); ?></h2> |
| 6 |
<p> |
| 7 |
<?php esc_html_e( 'If image optimization gets stuck or bulk optimization never completes, use this button to clear internal optimization locks, running-state transients, and pending scheduled jobs. Your settings and optimized images will not be affected.', 'imagify' ); ?> |
| 8 |
</p> |
| 9 |
<button type="button" |
| 10 |
id="imagify-reset-internal-state" |
| 11 |
class="button imagify-button-primary" |
| 12 |
data-nonce="<?php echo esc_attr( wp_create_nonce( 'imagify_reset_internal_state' ) ); ?>"> |
| 13 |
<?php esc_html_e( 'Reset Internal State', 'imagify' ); ?> |
| 14 |
</button> |
| 15 |
<span id="imagify-reset-internal-state-feedback"></span> |
| 16 |
</div> |
| 17 |
|