PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | views/page-bulk.php +10 -4 2.3.0 → trunk View file →
@@ -121,10 +121,11 @@
121 121 <div class="imagify-pr2">
122 122 <p>
123 123 <?php wp_nonce_field( 'imagify-bulk-optimize', 'imagifybulkuploadnonce' ); ?>
124 124 <?php
125 - $disabled = '';
126 - $class = '';
125 + $disabled = '';
126 + $class = '';
127 + $stop_hidden = 'hidden';
127 128
128 129 if (
129 130 false !== get_transient( 'imagify_wp_optimize_running' )
130 131 ||
@@ -129,10 +130,11 @@
129 130 false !== get_transient( 'imagify_wp_optimize_running' )
130 131 ||
131 132 false !== get_transient( 'imagify_custom-folders_optimize_running' )
132 133 ) {
133 - $disabled = 'disabled="disabled"';
134 - $class = 'rotate';
134 + $disabled = 'disabled="disabled"';
135 + $class = 'rotate';
136 + $stop_hidden = '';
135 137 }
136 138
137 139 ?>
138 140 <button id="imagify-bulk-action" type="button" class="button button-primary" <?php echo $disabled; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
@@ -137,8 +139,12 @@
137 139 ?>
138 140 <button id="imagify-bulk-action" type="button" class="button button-primary" <?php echo $disabled; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
139 141 <span class="dashicons dashicons-admin-generic <?php echo esc_attr( $class ); ?>"></span>
140 142 <span class="button-text"><?php esc_html_e( 'Imagif’em all', 'imagify' ); ?></span>
143 + </button>
144 + <button id="imagify-bulk-stop" type="button" class="button button-primary <?php echo esc_attr( $stop_hidden ); ?>" aria-hidden="<?php echo esc_attr( $stop_hidden ? 'true' : 'false' ); ?>">
145 + <span class="dashicons dashicons-no-alt"></span>
146 + <span class="button-text"><?php esc_html_e( 'Stop the optimization', 'imagify' ); ?></span>
141 147 </button>
142 148 </p>
143 149 </div>
144 150 <?php if ( ! is_wp_error( get_imagify_max_image_size() ) ) { ?>