Version Description
- Bugfix: avoid useless warnings on is_callable to flood php error log as reported by Praveen Kumar
Download this release
Release Info
Developer | futtta |
Plugin | Autoptimize |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- autoptimize.php +1 -1
- classes/autoptimizeHTML.php +1 -1
- classes/autoptimizeScripts.php +1 -1
- classes/autoptimizeStyles.php +1 -1
- readme.txt +4 -1
autoptimize.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Autoptimize
|
4 |
Plugin URI: http://blog.futtta.be/autoptimize
|
5 |
Description: Optimizes your website, concatenating the CSS and JavaScript code, and compressing it.
|
6 |
-
Version: 1.8.
|
7 |
Author: Frank Goossens (futtta)
|
8 |
Author URI: http://blog.futtta.be/
|
9 |
Domain Path: localization/
|
3 |
Plugin Name: Autoptimize
|
4 |
Plugin URI: http://blog.futtta.be/autoptimize
|
5 |
Description: Optimizes your website, concatenating the CSS and JavaScript code, and compressing it.
|
6 |
+
Version: 1.8.3
|
7 |
Author: Frank Goossens (futtta)
|
8 |
Author URI: http://blog.futtta.be/
|
9 |
Domain Path: localization/
|
classes/autoptimizeHTML.php
CHANGED
@@ -26,7 +26,7 @@ class autoptimizeHTML extends autoptimizeBase {
|
|
26 |
// Minify html
|
27 |
$options = array('keepComments' => $this->keepcomments);
|
28 |
|
29 |
-
if (is_callable(array(new Minify_HTML,"minify"))) {
|
30 |
$tmp_content = Minify_HTML::minify($this->content,$options);
|
31 |
if (!empty($tmp_content)) {
|
32 |
$this->content = $tmp_content;
|
26 |
// Minify html
|
27 |
$options = array('keepComments' => $this->keepcomments);
|
28 |
|
29 |
+
if (@is_callable(array(new Minify_HTML,"minify"))) {
|
30 |
$tmp_content = Minify_HTML::minify($this->content,$options);
|
31 |
if (!empty($tmp_content)) {
|
32 |
$this->content = $tmp_content;
|
classes/autoptimizeScripts.php
CHANGED
@@ -167,7 +167,7 @@ class autoptimizeScripts extends autoptimizeBase
|
|
167 |
|
168 |
//$this->jscode has all the uncompressed code now.
|
169 |
if(class_exists('JSMin')) {
|
170 |
-
if (is_callable(array(new JSMin,"minify"))) {
|
171 |
$tmp_jscode = trim(JSMin::minify($this->jscode));
|
172 |
if (!empty($tmp_jscode)) {
|
173 |
$this->jscode = $tmp_jscode;
|
167 |
|
168 |
//$this->jscode has all the uncompressed code now.
|
169 |
if(class_exists('JSMin')) {
|
170 |
+
if (@is_callable(array(new JSMin,"minify"))) {
|
171 |
$tmp_jscode = trim(JSMin::minify($this->jscode));
|
172 |
if (!empty($tmp_jscode)) {
|
173 |
$this->jscode = $tmp_jscode;
|
classes/autoptimizeStyles.php
CHANGED
@@ -278,7 +278,7 @@ class autoptimizeStyles extends autoptimizeBase {
|
|
278 |
$cssmin = new CSSmin();
|
279 |
if (method_exists($cssmin,"run")) {
|
280 |
$tmp_code = trim($cssmin->run($code));
|
281 |
-
} elseif (is_callable(array($cssmin,"minify"))) {
|
282 |
$tmp_code = trim(CssMin::minify($code));
|
283 |
}
|
284 |
}
|
278 |
$cssmin = new CSSmin();
|
279 |
if (method_exists($cssmin,"run")) {
|
280 |
$tmp_code = trim($cssmin->run($code));
|
281 |
+
} elseif (@is_callable(array($cssmin,"minify"))) {
|
282 |
$tmp_code = trim(CssMin::minify($code));
|
283 |
}
|
284 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: css, html, javascript, js, optimize, speed, cache, data-uri, aggregate, mi
|
|
4 |
Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.8.
|
8 |
|
9 |
Autoptimize speeds up your website and helps you save bandwidth by aggregating and minimizing JS, CSS and HTML.
|
10 |
|
@@ -125,6 +125,9 @@ You can report problems on the [wordpress.org support forum](http://wordpress.or
|
|
125 |
|
126 |
== Changelog ==
|
127 |
|
|
|
|
|
|
|
128 |
= 1.8.2 =
|
129 |
* Improvement: more graceful failure when minifier classes exist but method does not, based on [bug-report by Franck160](http://wordpress.org/support/topic/confict-with-dynamic-to-top)
|
130 |
* Improvement: deferred CSS is also outputted in noscript-tags
|
4 |
Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.8.3
|
8 |
|
9 |
Autoptimize speeds up your website and helps you save bandwidth by aggregating and minimizing JS, CSS and HTML.
|
10 |
|
125 |
|
126 |
== Changelog ==
|
127 |
|
128 |
+
= 1.8.3 =
|
129 |
+
* Bugfix: avoid useless warnings on is_callable to flood php error log as [reported by Praveen Kumar](http://wordpress.org/support/topic/182-breaks-css-and-js?replies=14#post-5377604)
|
130 |
+
|
131 |
= 1.8.2 =
|
132 |
* Improvement: more graceful failure when minifier classes exist but method does not, based on [bug-report by Franck160](http://wordpress.org/support/topic/confict-with-dynamic-to-top)
|
133 |
* Improvement: deferred CSS is also outputted in noscript-tags
|