Skip to content

Commit e48be2f

Browse files
author
Frank Evers
committed
Rewording Compress All Images.
1 parent cf9e167 commit e48be2f

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The API key can also be configured in wp-config.php. You can add a `TINY_API_KEY
7878
2. In the Media Library you can see how much bytes TinyPNG has saved you. You can also compress additional sizes per image.
7979
3. Optimize all images in bulk after installing the plugin or when additional sizes have to be optimized.
8080
4. Showing progress during bulk optimization from media library.
81-
5. Bulk optimization of all images through the Media > Optimize Images page.
81+
5. Bulk optimization of all images through the Media > Compress All Images page.
8282

8383
== Frequently Asked Questions ==
8484

@@ -98,7 +98,7 @@ A: No. There are no limitations on the size of the images you want to compress.
9898
A: Everything will keep on working, but newly uploaded images will not be optimized. Of course we encourage everyone to sign up for a full subscription.
9999

100100
= Q: Can I optimize all existing images in my media library? =
101-
A: Yes! After installing the plugin, go to *Media > Optimize Images*, and click on the button to optimize all unoptimized images in your media library.
101+
A: Yes! After installing the plugin, go to *Media > Compress All Images*, and click on the button to optimize all unoptimized images in your media library.
102102

103103
== Changelog ==
104104

src/class-tiny-plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function admin_init() {
6262

6363
public function admin_menu() {
6464
add_media_page(
65-
__('Compress JPEG & PNG Images', 'tiny-compress-images'), __('Optimize Images', 'tiny-compress-images'),
65+
__('Compress JPEG & PNG Images', 'tiny-compress-images'), __('Compress All Images', 'tiny-compress-images'),
6666
'upload_files', 'tiny-bulk-compress', $this->get_method('bulk_compress_page')
6767
);
6868
}
@@ -87,7 +87,7 @@ public function enqueue_scripts($hook) {
8787
'wpVersion' => self::wp_version(),
8888
'pluginVersion' => self::plugin_version(),
8989
'L10nAllDone' => __('All images are processed', 'tiny-compress-images'),
90-
'L10nBulkAction' => __('Optimize Images', 'tiny-compress-images'),
90+
'L10nBulkAction' => __('Compress All Images', 'tiny-compress-images'),
9191
'L10nCompressing' => __('Compressing', 'tiny-compress-images'),
9292
'L10nCompression' => __('compression', 'tiny-compress-images'),
9393
'L10nCompressions' => __('compressions', 'tiny-compress-images'),
@@ -252,7 +252,7 @@ public function bulk_compress_page() {
252252
echo '<input type="hidden" name="tiny-bulk-compress" value="1">';
253253
echo '<p>';
254254
echo '<button class="button button-primary button-large" type="submit">';
255-
esc_html_e('Optimize Images', 'tiny-compress-images');
255+
esc_html_e('Compress All Images', 'tiny-compress-images');
256256
echo '</button>';
257257
echo '</p>';
258258
echo '</form>';

src/class-tiny-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function render_total_savings() {
308308
if ($total_savings > 0) {
309309
printf(esc_html__('You have saved a total of %s on images!', 'tiny-compress-images'), '<strong>' . size_format($total_savings) . '</strong>' );
310310
} else {
311-
$link = '<a href="upload.php?page=tiny-bulk-compress">' . esc_html__('Optimize Images', 'tiny-compress-images') . '</a>';
311+
$link = '<a href="upload.php?page=tiny-bulk-compress">' . esc_html__('Compress All Images', 'tiny-compress-images') . '</a>';
312312
printf(esc_html__('No images compressed yet. Use %s to compress existing images.', 'tiny-compress-images'), $link);
313313
}
314314
echo '</p>';

test/integration/BulkCompressIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function tearDown() {
1919

2020
public function testBulkCompressActionShouldBePresentInMedia() {
2121
$this->upload_media(dirname(__FILE__) . '/../fixtures/input-example.png');
22-
$this->assertEquals('Optimize Images', self::$driver->findElement(
22+
$this->assertEquals('Compress All Images', self::$driver->findElement(
2323
WebDriverBy::cssSelector('select[name="action"] option[value="tiny_bulk_compress"]')
2424
)->getText());
2525
}

test/integration/SettingsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testShouldShowBulkCompressionLink() {
174174
self::$driver->wait(2)->until(WebDriverExpectedCondition::presenceOfElementLocated(WebDriverBy::cssSelector('#tiny-compress-savings p')));
175175
$elements = self::$driver->findElement(WebDriverBy::id('tiny-compress-savings'))->findElements(WebDriverBy::tagName('p'));
176176
$statuses = array_map('innerText', $elements);
177-
$this->assertContains('No images compressed yet. Use Optimize Images to compress existing images.', $statuses);
177+
$this->assertContains('No images compressed yet. Use Compress All Images to compress existing images.', $statuses);
178178
}
179179

180180
public function testShouldShowSavings() {

0 commit comments

Comments
 (0)