Version Description
- Solve CSS compatibility issue with WPEstate
- PHP 7 compatibility
Download this release
Release Info
Developer | ShortPixel |
Plugin | ShortPixel Image Optimizer |
Version | 3.3.7 |
Comparing to | |
See all releases |
Code changes from version 3.3.6 to 3.3.7
- JSON/JSON.php +22 -4
- css/short-pixel.css +13 -13
- readme.txt +6 -1
- shortpixel_view.php +2 -2
- wp-shortpixel.php +2 -2
JSON/JSON.php
CHANGED
@@ -130,10 +130,16 @@ class Services_JSON
|
|
130 |
* bubble up with an error, so all return values
|
131 |
* from encode() should be checked with isError()
|
132 |
*/
|
133 |
-
function
|
134 |
{
|
135 |
$this->use = $use;
|
136 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
/**
|
139 |
* convert a string from one UTF-16 char to one UTF-8 char
|
@@ -780,11 +786,17 @@ if (class_exists('PEAR_Error')) {
|
|
780 |
|
781 |
class Services_JSON_Error extends PEAR_Error
|
782 |
{
|
783 |
-
function
|
784 |
$mode = null, $options = null, $userinfo = null)
|
785 |
{
|
786 |
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
|
787 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
}
|
789 |
|
790 |
} else {
|
@@ -794,13 +806,19 @@ if (class_exists('PEAR_Error')) {
|
|
794 |
*/
|
795 |
class Services_JSON_Error
|
796 |
{
|
797 |
-
function
|
798 |
$mode = null, $options = null, $userinfo = null)
|
799 |
{
|
800 |
|
801 |
}
|
802 |
-
}
|
803 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
804 |
}
|
805 |
|
806 |
?>
|
130 |
* bubble up with an error, so all return values
|
131 |
* from encode() should be checked with isError()
|
132 |
*/
|
133 |
+
function __construct($use = 0)
|
134 |
{
|
135 |
$this->use = $use;
|
136 |
}
|
137 |
+
|
138 |
+
/* Handling older constructor */
|
139 |
+
function Services_JSON($use = 0) {
|
140 |
+
$this->__construct();
|
141 |
+
}
|
142 |
+
|
143 |
|
144 |
/**
|
145 |
* convert a string from one UTF-16 char to one UTF-8 char
|
786 |
|
787 |
class Services_JSON_Error extends PEAR_Error
|
788 |
{
|
789 |
+
function __construct($message = 'unknown error', $code = null,
|
790 |
$mode = null, $options = null, $userinfo = null)
|
791 |
{
|
792 |
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
|
793 |
}
|
794 |
+
|
795 |
+
/* Handling older constructor */
|
796 |
+
function Services_JSON_Error($message = 'unknown error', $code = null,
|
797 |
+
$mode = null, $options = null, $userinfo = null) {
|
798 |
+
$this->__construct();
|
799 |
+
}
|
800 |
}
|
801 |
|
802 |
} else {
|
806 |
*/
|
807 |
class Services_JSON_Error
|
808 |
{
|
809 |
+
function __construct($message = 'unknown error', $code = null,
|
810 |
$mode = null, $options = null, $userinfo = null)
|
811 |
{
|
812 |
|
813 |
}
|
|
|
814 |
|
815 |
+
/* Handling older constructor */
|
816 |
+
function Services_JSON_Error($message = 'unknown error', $code = null,
|
817 |
+
$mode = null, $options = null, $userinfo = null) {
|
818 |
+
$this->__construct();
|
819 |
+
}
|
820 |
+
|
821 |
+
}
|
822 |
}
|
823 |
|
824 |
?>
|
css/short-pixel.css
CHANGED
@@ -272,14 +272,14 @@ p.settings-info {
|
|
272 |
}
|
273 |
|
274 |
/* TABS CONTROLS */
|
275 |
-
article.tabs {
|
276 |
position: relative;
|
277 |
display: block;
|
278 |
width: 100%;
|
279 |
height: 900px;
|
280 |
margin: 2em auto;
|
281 |
}
|
282 |
-
article.tabs section {
|
283 |
position: absolute;
|
284 |
display: block;
|
285 |
top: 1.8em;
|
@@ -292,10 +292,10 @@ article.tabs section {
|
|
292 |
box-shadow: 0 3px 3px rgba(0,0,0,0.1);
|
293 |
z-index: 0;
|
294 |
}
|
295 |
-
article.tabs section:first-child {
|
296 |
z-index: 1;
|
297 |
}
|
298 |
-
article.tabs section h2 {
|
299 |
position: absolute;
|
300 |
font-size: 1.3em;
|
301 |
font-weight: normal;
|
@@ -309,13 +309,13 @@ article.tabs section h2 {
|
|
309 |
background-color: #ddd;
|
310 |
/* border-radius: 5px 5px 0 0; */
|
311 |
}
|
312 |
-
article.tabs section:nth-child(2) h2 {
|
313 |
left: 192px;
|
314 |
}
|
315 |
-
article.tabs section:nth-child(3) h2 {
|
316 |
left: 374px;
|
317 |
}
|
318 |
-
article.tabs section h2 a {
|
319 |
display: block;
|
320 |
width: 100%;
|
321 |
line-height: 1.8em;
|
@@ -324,19 +324,19 @@ article.tabs section h2 a {
|
|
324 |
color: #23282d;
|
325 |
outline: 0 none;
|
326 |
}
|
327 |
-
article.tabs section h2 a:focus,
|
328 |
-
article.tabs section#tab-resources a:focus {
|
329 |
box-shadow: none;
|
330 |
outline: none;
|
331 |
}
|
332 |
-
article.tabs section.sel-tab,
|
333 |
-
article.tabs section.sel-tab h2 {
|
334 |
color: #333;
|
335 |
background-color: #fff;
|
336 |
z-index: 2;
|
337 |
}
|
338 |
-
/*article.tabs section,
|
339 |
-
article.tabs section h2 {
|
340 |
-webkit-transition: all 500ms ease;
|
341 |
-moz-transition: all 500ms ease;
|
342 |
-ms-transition: all 500ms ease;
|
272 |
}
|
273 |
|
274 |
/* TABS CONTROLS */
|
275 |
+
article.sp-tabs {
|
276 |
position: relative;
|
277 |
display: block;
|
278 |
width: 100%;
|
279 |
height: 900px;
|
280 |
margin: 2em auto;
|
281 |
}
|
282 |
+
article.sp-tabs section {
|
283 |
position: absolute;
|
284 |
display: block;
|
285 |
top: 1.8em;
|
292 |
box-shadow: 0 3px 3px rgba(0,0,0,0.1);
|
293 |
z-index: 0;
|
294 |
}
|
295 |
+
article.sp-tabs section:first-child {
|
296 |
z-index: 1;
|
297 |
}
|
298 |
+
article.sp-tabs section h2 {
|
299 |
position: absolute;
|
300 |
font-size: 1.3em;
|
301 |
font-weight: normal;
|
309 |
background-color: #ddd;
|
310 |
/* border-radius: 5px 5px 0 0; */
|
311 |
}
|
312 |
+
article.sp-tabs section:nth-child(2) h2 {
|
313 |
left: 192px;
|
314 |
}
|
315 |
+
article.sp-tabs section:nth-child(3) h2 {
|
316 |
left: 374px;
|
317 |
}
|
318 |
+
article.sp-tabs section h2 a {
|
319 |
display: block;
|
320 |
width: 100%;
|
321 |
line-height: 1.8em;
|
324 |
color: #23282d;
|
325 |
outline: 0 none;
|
326 |
}
|
327 |
+
article.sp-tabs section h2 a:focus,
|
328 |
+
article.sp-tabs section#tab-resources a:focus {
|
329 |
box-shadow: none;
|
330 |
outline: none;
|
331 |
}
|
332 |
+
article.sp-tabs section.sel-tab,
|
333 |
+
article.sp-tabs section.sel-tab h2 {
|
334 |
color: #333;
|
335 |
background-color: #fff;
|
336 |
z-index: 2;
|
337 |
}
|
338 |
+
/*article.sp-tabs section,
|
339 |
+
article.sp-tabs section h2 {
|
340 |
-webkit-transition: all 500ms ease;
|
341 |
-moz-transition: all 500ms ease;
|
342 |
-ms-transition: all 500ms ease;
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: image optimizer, image optimization, compress pdf, compress jpeg, compress
|
|
5 |
|
6 |
Requires at least: 3.2.0
|
7 |
Tested up to: 4.6
|
8 |
-
Stable tag: 3.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -193,6 +193,11 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
196 |
= 3.3.6 =
|
197 |
|
198 |
* When quota exceeded, download the images that are already processed on the server
|
5 |
|
6 |
Requires at least: 3.2.0
|
7 |
Tested up to: 4.6
|
8 |
+
Stable tag: 3.3.7
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 3.3.7 =
|
197 |
+
|
198 |
+
* Solve CSS compatibility issue with WPEstate
|
199 |
+
* PHP 7 compatibility
|
200 |
+
|
201 |
= 3.3.6 =
|
202 |
|
203 |
* When quota exceeded, download the images that are already processed on the server
|
shortpixel_view.php
CHANGED
@@ -360,7 +360,7 @@ class ShortPixelView {
|
|
360 |
</div>
|
361 |
<?php } ?>
|
362 |
|
363 |
-
<article id="shortpixel-settings-tabs" class="tabs">
|
364 |
<section class='sel-tab' id="tab-settings">
|
365 |
<h2><a class='tab-link' href='javascript:void(0);' data-id="tab-settings">Settings</a></h2>
|
366 |
<?php $this->displaySettingsForm($showApiKey, $quotaData);?>
|
@@ -388,7 +388,7 @@ class ShortPixelView {
|
|
388 |
var target = 'tab-' + window.location.hash.substring(window.location.hash.indexOf("#")+1)
|
389 |
ShortPixel.switchSettingsTab(target);
|
390 |
}
|
391 |
-
jQuery("article.tabs a.tab-link").click(function(){ShortPixel.switchSettingsTab(jQuery(this).data("id"))});
|
392 |
});
|
393 |
</script>
|
394 |
<?php
|
360 |
</div>
|
361 |
<?php } ?>
|
362 |
|
363 |
+
<article id="shortpixel-settings-tabs" class="sp-tabs">
|
364 |
<section class='sel-tab' id="tab-settings">
|
365 |
<h2><a class='tab-link' href='javascript:void(0);' data-id="tab-settings">Settings</a></h2>
|
366 |
<?php $this->displaySettingsForm($showApiKey, $quotaData);?>
|
388 |
var target = 'tab-' + window.location.hash.substring(window.location.hash.indexOf("#")+1)
|
389 |
ShortPixel.switchSettingsTab(target);
|
390 |
}
|
391 |
+
jQuery("article.sp-tabs a.tab-link").click(function(){ShortPixel.switchSettingsTab(jQuery(this).data("id"))});
|
392 |
});
|
393 |
</script>
|
394 |
<?php
|
wp-shortpixel.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: ShortPixel Image Optimizer
|
4 |
* Plugin URI: https://shortpixel.com/
|
5 |
* Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: ShortPixel
|
8 |
* Author URI: https://shortpixel.com
|
9 |
*/
|
@@ -22,7 +22,7 @@ define('SP_RESET_ON_ACTIVATE', false); //if true TODO set false
|
|
22 |
|
23 |
define('SP_AFFILIATE_CODE', '');
|
24 |
|
25 |
-
define('PLUGIN_VERSION', "3.3.
|
26 |
define('SP_MAX_TIMEOUT', 10);
|
27 |
define('SP_VALIDATE_MAX_TIMEOUT', 15);
|
28 |
define('SP_BACKUP', 'ShortpixelBackups');
|
3 |
* Plugin Name: ShortPixel Image Optimizer
|
4 |
* Plugin URI: https://shortpixel.com/
|
5 |
* Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
6 |
+
* Version: 3.3.7
|
7 |
* Author: ShortPixel
|
8 |
* Author URI: https://shortpixel.com
|
9 |
*/
|
22 |
|
23 |
define('SP_AFFILIATE_CODE', '');
|
24 |
|
25 |
+
define('PLUGIN_VERSION', "3.3.7");
|
26 |
define('SP_MAX_TIMEOUT', 10);
|
27 |
define('SP_VALIDATE_MAX_TIMEOUT', 15);
|
28 |
define('SP_BACKUP', 'ShortpixelBackups');
|