You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (empty($_POST['tiny-bulk-compress']) && empty($_REQUEST['ids'])) {
251
251
$result = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM $wpdb->posts WHERE post_type = 'attachment' AND post_mime_type LIKE 'image/%' ORDER BY ID DESC", ARRAY_A);
echo'<p>' . self::translate_escape("Use this tool to compress all images in your media library") . '. ';
255
256
echoself::translate_escape("Only images that have not been compressed will be compressed") . '.</p>';
256
-
echo'<p>' . sprintf(self::translate_escape("We have found %d images in your media library"), $count) . '. ';
257
-
echoself::translate_escape("To begin, just press the button below") . '.</p>';
257
+
echo'<p>' . sprintf(self::translate_escape("We have found %d images in your media library and for each image %d sizes will be compressed"), $image_count, $sizes_count) . '. ';
258
+
echosprintf(self::translate_escape('This results in %d compressions at most'), $image_count*$sizes_count) . '.</p>';
259
+
echo'<p>' . self::translate_escape("To begin, just press the button below") . '.</p>';
$this->assertContains('With these settings you can compress at least 100 images for free each month.', $statuses);
92
+
$this->assertContains('Each selected size counts as a compression. With these settings you can compress at least 100 images for free each month.', $statuses);
93
93
}
94
94
95
95
publicfunctiontestShouldUpdateTotalImagesInfo() {
96
96
$element = self::$driver->findElement(
97
97
WebDriverBy::xpath('//input[@type="checkbox" and @name="tinypng_sizes[0]" and @checked="checked"]'));
WebDriverBy::cssSelector('#tiny-image-sizes-notice'), 'With these settings you can compress at least 125 images for free each month.'));
100
+
WebDriverBy::cssSelector('#tiny-image-sizes-notice'), 'Each selected size counts as a compression. With these settings you can compress at least 125 images for free each month.'));
$this->assertContains('With these settings you can compress at least 125 images for free each month.', $statuses);
104
+
$this->assertContains('Each selected size counts as a compression. With these settings you can compress at least 125 images for free each month.', $statuses);
WebDriverBy::cssSelector('#tiny-image-sizes-notice'), 'With these settings no images will be compressed.'));
114
+
WebDriverBy::cssSelector('#tiny-image-sizes-notice'), 'Each selected size counts as a compression. With these settings no images will be compressed.'));
0 commit comments