Version Description
- Improve bulk optimization error handling
Download this release
Release Info
Developer | keycdn |
Plugin | Optimus – WordPress Image Optimizer |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- inc/optimus.class.php +1 -1
- inc/optimus_settings.class.php +1 -1
- js/scripts.js +14 -7
- optimus.php +1 -1
- readme.txt +4 -0
inc/optimus.class.php
CHANGED
@@ -371,7 +371,7 @@ class Optimus
|
|
371 |
|
372 |
$handle = 'optimus-scripts';
|
373 |
|
374 |
-
wp_register_script( $handle, plugins_url('js/scripts.js', OPTIMUS_FILE), array('jquery'), TRUE );
|
375 |
wp_localize_script($handle, 'optimusOptimize', array(
|
376 |
'nonce' => wp_create_nonce('optimus-optimize'),
|
377 |
'bulkDone' => __("All images have been optimized.", "optimus"),
|
371 |
|
372 |
$handle = 'optimus-scripts';
|
373 |
|
374 |
+
wp_register_script( $handle, plugins_url('js/scripts.js', OPTIMUS_FILE), array('jquery'), '2', TRUE );
|
375 |
wp_localize_script($handle, 'optimusOptimize', array(
|
376 |
'nonce' => wp_create_nonce('optimus-optimize'),
|
377 |
'bulkDone' => __("All images have been optimized.", "optimus"),
|
inc/optimus_settings.class.php
CHANGED
@@ -95,7 +95,7 @@ class Optimus_Settings
|
|
95 |
<?php _e("Optimus Settings", "optimus"); ?>
|
96 |
</h2>
|
97 |
|
98 |
-
<div class="updated"><p><?php _e("Need to optimize all your existing images? Use the <strong><a href=\"
|
99 |
|
100 |
<form method="post" action="options.php">
|
101 |
<?php settings_fields('optimus') ?>
|
95 |
<?php _e("Optimus Settings", "optimus"); ?>
|
96 |
</h2>
|
97 |
|
98 |
+
<div class="updated"><p><?php _e("Need to optimize all your existing images? Use the <strong><a href=\"".admin_url('tools.php?page=optimus-bulk-optimizer')."\">Optimus Bulk Optimizer</a></strong>.", "optimus"); ?></p></div>
|
99 |
|
100 |
<form method="post" action="options.php">
|
101 |
<?php settings_fields('optimus') ?>
|
js/scripts.js
CHANGED
@@ -21,15 +21,22 @@
|
|
21 |
row.find('.bar').css('width', '100%')
|
22 |
row.find('.percent').html(data.info)
|
23 |
row.find('.progress').attr("title", data.info)
|
24 |
-
} else if (data.optimus.quantity
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
} else {
|
30 |
-
status.addClass('
|
31 |
row.find('.bar').css('width', '100%')
|
32 |
-
row.find('.percent').html(
|
|
|
33 |
}
|
34 |
|
35 |
if (assets[++i]) {
|
21 |
row.find('.bar').css('width', '100%')
|
22 |
row.find('.percent').html(data.info)
|
23 |
row.find('.progress').attr("title", data.info)
|
24 |
+
} else if (typeof data.optimus.quantity != "undefined") {
|
25 |
+
if (data.optimus.quantity < 100) {
|
26 |
+
status.addClass('partial')
|
27 |
+
row.find('.bar').css('width', data.optimus.quantity + '%')
|
28 |
+
row.find('.percent').html(data.optimus.quantity + "% " + optimusOptimize.optimized)
|
29 |
+
row.find('.progress').attr("title", data.message)
|
30 |
+
} else {
|
31 |
+
status.addClass('success')
|
32 |
+
row.find('.bar').css('width', '100%')
|
33 |
+
row.find('.percent').html(data.optimus.quantity + "% " + optimusOptimize.optimized)
|
34 |
+
}
|
35 |
} else {
|
36 |
+
status.addClass('err')
|
37 |
row.find('.bar').css('width', '100%')
|
38 |
+
row.find('.percent').html(optimusOptimize.internalError)
|
39 |
+
row.find('.progress').attr("title", error.toString())
|
40 |
}
|
41 |
|
42 |
if (assets[++i]) {
|
optimus.php
CHANGED
@@ -7,7 +7,7 @@ Author: KeyCDN
|
|
7 |
Author URI: https://www.keycdn.com
|
8 |
Plugin URI: https://optimus.io
|
9 |
License: GPLv2 or later
|
10 |
-
Version: 1.4.
|
11 |
*/
|
12 |
|
13 |
/*
|
7 |
Author URI: https://www.keycdn.com
|
8 |
Plugin URI: https://optimus.io
|
9 |
License: GPLv2 or later
|
10 |
+
Version: 1.4.1
|
11 |
*/
|
12 |
|
13 |
/*
|
readme.txt
CHANGED
@@ -49,6 +49,7 @@ Optimus optional support the conversion of images to the thrifty [*WebP* image f
|
|
49 |
* Optional: no removal of EXIF and IPTC metadata
|
50 |
* Optional: HTTPS connection for the image transfer (Optimus HQ)
|
51 |
* Optional: [conversion to the WebP](https://optimus.io/support/convert-jpeg-and-png-to-webp-image-format/) image format (Optimus HQ)
|
|
|
52 |
* Optimized for WordPress Mobile Apps and Windows Live Writer
|
53 |
* More advantageous PageSpeed, influencing the Ranking Factor
|
54 |
* Faster load times for blog pages
|
@@ -98,6 +99,9 @@ Optimus optional support the conversion of images to the thrifty [*WebP* image f
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
101 |
= 1.4.0 =
|
102 |
* Added PNG in the free version and the manual optimization setting
|
103 |
|
49 |
* Optional: no removal of EXIF and IPTC metadata
|
50 |
* Optional: HTTPS connection for the image transfer (Optimus HQ)
|
51 |
* Optional: [conversion to the WebP](https://optimus.io/support/convert-jpeg-and-png-to-webp-image-format/) image format (Optimus HQ)
|
52 |
+
* Optional: Disable automatic optimizaion during upload process
|
53 |
* Optimized for WordPress Mobile Apps and Windows Live Writer
|
54 |
* More advantageous PageSpeed, influencing the Ranking Factor
|
55 |
* Faster load times for blog pages
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 1.4.1 =
|
103 |
+
* Improve bulk optimization error handling
|
104 |
+
|
105 |
= 1.4.0 =
|
106 |
* Added PNG in the free version and the manual optimization setting
|
107 |
|