Version Description
- Fixed: Bulk Smush button keeps spinning after 50 images for free version
- Fixed: NextGen Bulk Smush button issue
Download this release
Release Info
Developer | UmeshSingla |
Plugin | Smush Image Compression and Optimization |
Version | 2.0.7.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.7.1
assets/js/wp-smushit-admin.js
CHANGED
@@ -271,10 +271,7 @@ jQuery(function ($) {
|
|
271 |
self.call_ajax();
|
272 |
}
|
273 |
}
|
274 |
-
return false;
|
275 |
}
|
276 |
-
self.update_progress(res);
|
277 |
-
|
278 |
if (typeof res.success === "undefined" || ( typeof res.success !== "undefined" && res.success === false && res.data.error !== 'bulk_request_image_limit_exceeded' )) {
|
279 |
self.increment_errors();
|
280 |
}
|
@@ -282,6 +279,11 @@ jQuery(function ($) {
|
|
282 |
if (typeof res.data !== "undefined" && res.data.error == 'bulk_request_image_limit_exceeded' && !self.is_resolved()) {
|
283 |
self.free_exceeded();
|
284 |
} else {
|
|
|
|
|
|
|
|
|
|
|
285 |
if (self.continue()) {
|
286 |
self.call_ajax();
|
287 |
}
|
271 |
self.call_ajax();
|
272 |
}
|
273 |
}
|
|
|
274 |
}
|
|
|
|
|
275 |
if (typeof res.success === "undefined" || ( typeof res.success !== "undefined" && res.success === false && res.data.error !== 'bulk_request_image_limit_exceeded' )) {
|
276 |
self.increment_errors();
|
277 |
}
|
279 |
if (typeof res.data !== "undefined" && res.data.error == 'bulk_request_image_limit_exceeded' && !self.is_resolved()) {
|
280 |
self.free_exceeded();
|
281 |
} else {
|
282 |
+
|
283 |
+
if( self.is_bulk ) {
|
284 |
+
self.update_progress(res);
|
285 |
+
}
|
286 |
+
|
287 |
if (self.continue()) {
|
288 |
self.call_ajax();
|
289 |
}
|
languages/wp-smushit.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the WP Smush package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Smush 2.0.7\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wp-smush\n"
|
7 |
-
"POT-Creation-Date: 2015-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -77,7 +77,7 @@ msgstr ""
|
|
77 |
|
78 |
#: lib/class-wp-smush-admin.php:265 lib/class-wp-smush.php:761
|
79 |
#: lib/nextgen-integration/class-wp-smush-nextgen-admin.php:147
|
80 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
81 |
msgid "Super-Smush"
|
82 |
msgstr ""
|
83 |
|
@@ -380,12 +380,12 @@ msgid "Image couldn't be smushed"
|
|
380 |
msgstr ""
|
381 |
|
382 |
#: lib/class-wp-smush.php:725
|
383 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
384 |
msgid "Error processing request"
|
385 |
msgstr ""
|
386 |
|
387 |
#: lib/class-wp-smush.php:729
|
388 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
389 |
msgid "Already Optimized"
|
390 |
msgstr ""
|
391 |
|
@@ -402,7 +402,7 @@ msgid "by %s ( %01.1f%% )"
|
|
402 |
msgstr ""
|
403 |
|
404 |
#: lib/class-wp-smush.php:737
|
405 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
406 |
msgid "Smush stats"
|
407 |
msgstr ""
|
408 |
|
@@ -425,12 +425,12 @@ msgid " Skipped"
|
|
425 |
msgstr ""
|
426 |
|
427 |
#: lib/class-wp-smush.php:1096
|
428 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
429 |
msgid "Image size"
|
430 |
msgstr ""
|
431 |
|
432 |
#: lib/class-wp-smush.php:1097
|
433 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
434 |
msgid "Savings"
|
435 |
msgstr ""
|
436 |
|
@@ -452,7 +452,7 @@ msgstr[1] ""
|
|
452 |
msgid "Smush request timed out, You can try setting a higher value ( > 60 ) for `WP_SMUSH_API_TIMEOUT`."
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:
|
456 |
msgid "Reduced by %s ( %01.1f%% )"
|
457 |
msgstr ""
|
458 |
|
2 |
# This file is distributed under the same license as the WP Smush package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Smush 2.0.7.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wp-smush\n"
|
7 |
+
"POT-Creation-Date: 2015-11-02 11:57:41+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
77 |
|
78 |
#: lib/class-wp-smush-admin.php:265 lib/class-wp-smush.php:761
|
79 |
#: lib/nextgen-integration/class-wp-smush-nextgen-admin.php:147
|
80 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:226
|
81 |
msgid "Super-Smush"
|
82 |
msgstr ""
|
83 |
|
380 |
msgstr ""
|
381 |
|
382 |
#: lib/class-wp-smush.php:725
|
383 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:181
|
384 |
msgid "Error processing request"
|
385 |
msgstr ""
|
386 |
|
387 |
#: lib/class-wp-smush.php:729
|
388 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:185
|
389 |
msgid "Already Optimized"
|
390 |
msgstr ""
|
391 |
|
402 |
msgstr ""
|
403 |
|
404 |
#: lib/class-wp-smush.php:737
|
405 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:191
|
406 |
msgid "Smush stats"
|
407 |
msgstr ""
|
408 |
|
425 |
msgstr ""
|
426 |
|
427 |
#: lib/class-wp-smush.php:1096
|
428 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:325
|
429 |
msgid "Image size"
|
430 |
msgstr ""
|
431 |
|
432 |
#: lib/class-wp-smush.php:1097
|
433 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:326
|
434 |
msgid "Savings"
|
435 |
msgstr ""
|
436 |
|
452 |
msgid "Smush request timed out, You can try setting a higher value ( > 60 ) for `WP_SMUSH_API_TIMEOUT`."
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: lib/nextgen-integration/class-wp-smush-nextgen-stats.php:187
|
456 |
msgid "Reduced by %s ( %01.1f%% )"
|
457 |
msgstr ""
|
458 |
|
lib/nextgen-integration/class-wp-smush-nextgen-admin.php
CHANGED
@@ -174,7 +174,7 @@ if ( ! class_exists( 'WpSmushNextGenAdmin' ) ) {
|
|
174 |
|
175 |
if ( $super_smush ) {
|
176 |
//get the attachments, and get lossless count
|
177 |
-
echo "Supersmush pending";
|
178 |
// $this->lossless_ids = $this->get_lossless_attachments();
|
179 |
}
|
180 |
}
|
174 |
|
175 |
if ( $super_smush ) {
|
176 |
//get the attachments, and get lossless count
|
177 |
+
// echo "Supersmush pending";
|
178 |
// $this->lossless_ids = $this->get_lossless_attachments();
|
179 |
}
|
180 |
}
|
lib/nextgen-integration/class-wp-smush-nextgen-stats.php
CHANGED
@@ -144,11 +144,10 @@ if ( ! class_exists( 'WpSmushNextGenStats' ) ) {
|
|
144 |
}
|
145 |
} else {
|
146 |
|
147 |
-
|
|
|
148 |
return 0;
|
149 |
-
}else {
|
150 |
-
$unsmushed_images = ! empty( $unsmushed_images ) ? $unsmushed_images : $images;
|
151 |
-
|
152 |
return $count ? count( $unsmushed_images ) : $unsmushed_images;
|
153 |
}
|
154 |
}
|
144 |
}
|
145 |
} else {
|
146 |
|
147 |
+
$unsmushed_images = ! empty( $unsmushed_images ) ? $unsmushed_images : $images;
|
148 |
+
if ( ! $unsmushed_images ) {
|
149 |
return 0;
|
150 |
+
} else {
|
|
|
|
|
151 |
return $count ? count( $unsmushed_images ) : $unsmushed_images;
|
152 |
}
|
153 |
}
|
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
=== WP Smush ===
|
2 |
Plugin Name: WP Smush
|
3 |
-
Version: 2.0.7
|
4 |
Author: WPMU DEV
|
5 |
Author URI: http://premium.wpmudev.org/
|
6 |
Contributors: WPMUDEV, alexdunae
|
7 |
Tags: Attachment,Attachments,Compress,Compress Image File,Compress Image Size,Compress JPG,Compressed JPG, Compression Image,Image,Images,JPG,Optimise,Optimize,Photo,Photos,Pictures,PNG,Reduce Image Size,Smush,Smush.it,Upload,WordPress Compression,WordPress Image Tool,Yahoo, Yahoo Smush.it
|
8 |
Requires at least: 3.5
|
9 |
Tested up to: 4.3.1
|
10 |
-
Stable tag: 2.0.7
|
11 |
License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
|
13 |
Reduce image file sizes, improve performance and boost your SEO using the free <a href="https://premium.wpmudev.org/">WPMU DEV</a> WordPress Smush API.
|
@@ -81,6 +81,11 @@ Yahoo's Smush.it API is gone forever. So WPMU DEV built our own free API that is
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
|
|
84 |
= 2.0.7 =
|
85 |
|
86 |
* Fixed: Invalid header issue
|
1 |
=== WP Smush ===
|
2 |
Plugin Name: WP Smush
|
3 |
+
Version: 2.0.7.1
|
4 |
Author: WPMU DEV
|
5 |
Author URI: http://premium.wpmudev.org/
|
6 |
Contributors: WPMUDEV, alexdunae
|
7 |
Tags: Attachment,Attachments,Compress,Compress Image File,Compress Image Size,Compress JPG,Compressed JPG, Compression Image,Image,Images,JPG,Optimise,Optimize,Photo,Photos,Pictures,PNG,Reduce Image Size,Smush,Smush.it,Upload,WordPress Compression,WordPress Image Tool,Yahoo, Yahoo Smush.it
|
8 |
Requires at least: 3.5
|
9 |
Tested up to: 4.3.1
|
10 |
+
Stable tag: 2.0.7.1
|
11 |
License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
|
13 |
Reduce image file sizes, improve performance and boost your SEO using the free <a href="https://premium.wpmudev.org/">WPMU DEV</a> WordPress Smush API.
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 2.0.7.1 =
|
85 |
+
|
86 |
+
* Fixed: Bulk Smush button keeps spinning after 50 images for free version
|
87 |
+
* Fixed: NextGen Bulk Smush button issue
|
88 |
+
|
89 |
= 2.0.7 =
|
90 |
|
91 |
* Fixed: Invalid header issue
|
wp-smush.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Smush
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-smushit/
|
5 |
Description: Reduce image file sizes, improve performance and boost your SEO using the free <a href="https://premium.wpmudev.org/">WPMU DEV</a> WordPress Smush API.
|
6 |
Author: WPMU DEV
|
7 |
-
Version: 2.0.7
|
8 |
Author URI: http://premium.wpmudev.org/
|
9 |
Textdomain: wp-smushit
|
10 |
*/
|
@@ -35,7 +35,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
35 |
* Constants
|
36 |
*/
|
37 |
$prefix = 'WP_SMUSH_';
|
38 |
-
$version = '2.0.7';
|
39 |
|
40 |
/**
|
41 |
* Set the default timeout for API request and AJAX timeout
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-smushit/
|
5 |
Description: Reduce image file sizes, improve performance and boost your SEO using the free <a href="https://premium.wpmudev.org/">WPMU DEV</a> WordPress Smush API.
|
6 |
Author: WPMU DEV
|
7 |
+
Version: 2.0.7.1
|
8 |
Author URI: http://premium.wpmudev.org/
|
9 |
Textdomain: wp-smushit
|
10 |
*/
|
35 |
* Constants
|
36 |
*/
|
37 |
$prefix = 'WP_SMUSH_';
|
38 |
+
$version = '2.0.7.1';
|
39 |
|
40 |
/**
|
41 |
* Set the default timeout for API request and AJAX timeout
|