Version Description
- rollback automatic "minify inline CSS/ JS" which broke more then expected, this will come back as a separate default off option later and can now be enabled with a simple filter:
add_filter( 'autoptimize_html_minify_inline_js_css', '__return_true');
. - fix for "Call to undefined method autoptimizeOptionWrapper::delete_option()" in autoptimizeVersionUpdatesHandler.php
Download this release
Release Info
Developer | futtta |
Plugin | Autoptimize |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- autoptimize.php +2 -2
- classes/autoptimizeConfig.php +1 -1
- classes/autoptimizeHTML.php +1 -1
- classes/autoptimizeVersionUpdatesHandler.php +1 -1
- readme.txt +5 -1
autoptimize.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Autoptimize
|
4 |
* Plugin URI: https://autoptimize.com/
|
5 |
* Description: Makes your site faster by optimizing CSS, JS, Images, Google fonts and more.
|
6 |
-
* Version: 3.0.
|
7 |
* Author: Frank Goossens (futtta)
|
8 |
* Author URI: https://autoptimize.com/
|
9 |
* Text Domain: autoptimize
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
exit;
|
22 |
}
|
23 |
|
24 |
-
define( 'AUTOPTIMIZE_PLUGIN_VERSION', '3.0.
|
25 |
|
26 |
// plugin_dir_path() returns the trailing slash!
|
27 |
define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
3 |
* Plugin Name: Autoptimize
|
4 |
* Plugin URI: https://autoptimize.com/
|
5 |
* Description: Makes your site faster by optimizing CSS, JS, Images, Google fonts and more.
|
6 |
+
* Version: 3.0.2
|
7 |
* Author: Frank Goossens (futtta)
|
8 |
* Author URI: https://autoptimize.com/
|
9 |
* Text Domain: autoptimize
|
21 |
exit;
|
22 |
}
|
23 |
|
24 |
+
define( 'AUTOPTIMIZE_PLUGIN_VERSION', '3.0.2' );
|
25 |
|
26 |
// plugin_dir_path() returns the trailing slash!
|
27 |
define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
classes/autoptimizeConfig.php
CHANGED
@@ -370,7 +370,7 @@ $_rapidload_link = 'https://misc.optimizingmatters.com/partners/?from=csssetting
|
|
370 |
<tr class="html_sub" valign="top">
|
371 |
<th scope="row"><?php _e( 'Keep HTML comments?', 'autoptimize' ); ?></th>
|
372 |
<td><label class="cb_label"><input type="checkbox" name="autoptimize_html_keepcomments" <?php echo $conf->get( 'autoptimize_html_keepcomments' ) ? 'checked="checked" ' : ''; ?>/>
|
373 |
-
<?php _e( 'Enable this if you want HTML comments to remain in the page
|
374 |
</tr>
|
375 |
</table>
|
376 |
</li>
|
370 |
<tr class="html_sub" valign="top">
|
371 |
<th scope="row"><?php _e( 'Keep HTML comments?', 'autoptimize' ); ?></th>
|
372 |
<td><label class="cb_label"><input type="checkbox" name="autoptimize_html_keepcomments" <?php echo $conf->get( 'autoptimize_html_keepcomments' ) ? 'checked="checked" ' : ''; ?>/>
|
373 |
+
<?php _e( 'Enable this if you want HTML comments to remain in the page.', 'autoptimize' ); ?></label></td>
|
374 |
</tr>
|
375 |
</table>
|
376 |
</li>
|
classes/autoptimizeHTML.php
CHANGED
@@ -83,7 +83,7 @@ class autoptimizeHTML extends autoptimizeBase
|
|
83 |
}
|
84 |
|
85 |
// Optionally minify inline JS & CSS.
|
86 |
-
if ( apply_filters( 'autoptimize_html_minify_inline_js_css',
|
87 |
if ( false != autoptimizeOptionWrapper::get_option( 'autoptimize_js' ) && false != autoptimizeConfig::get_post_meta_ao_settings( 'ao_post_js_optimize' ) && true !== apply_filters( 'autoptimize_filter_js_noptimize', false, $this->content ) && false === strpos( $this->content, 'text/template' ) ) {
|
88 |
$options['jsMinifier'] = 'JSMin::minify';
|
89 |
}
|
83 |
}
|
84 |
|
85 |
// Optionally minify inline JS & CSS.
|
86 |
+
if ( apply_filters( 'autoptimize_html_minify_inline_js_css', false ) ) {
|
87 |
if ( false != autoptimizeOptionWrapper::get_option( 'autoptimize_js' ) && false != autoptimizeConfig::get_post_meta_ao_settings( 'ao_post_js_optimize' ) && true !== apply_filters( 'autoptimize_filter_js_noptimize', false, $this->content ) && false === strpos( $this->content, 'text/template' ) ) {
|
88 |
$options['jsMinifier'] = 'JSMin::minify';
|
89 |
}
|
classes/autoptimizeVersionUpdatesHandler.php
CHANGED
@@ -265,7 +265,7 @@ class autoptimizeVersionUpdatesHandler
|
|
265 |
* remove CCSS request limit option + update jquery exclusion to include WordPress 5.6 jquery.min.js.
|
266 |
*/
|
267 |
private function upgrade_from_2_7() {
|
268 |
-
|
269 |
$js_exclusions = get_option( 'autoptimize_js_exclude', '' );
|
270 |
if ( strpos( $js_exclusions, 'js/jquery/jquery.js' ) !== false && strpos( $js_exclusions, 'js/jquery/jquery.min.js' ) === false ) {
|
271 |
$js_exclusions .= ', js/jquery/jquery.min.js';
|
265 |
* remove CCSS request limit option + update jquery exclusion to include WordPress 5.6 jquery.min.js.
|
266 |
*/
|
267 |
private function upgrade_from_2_7() {
|
268 |
+
delete_option( 'autoptimize_ccss_rlimit' );
|
269 |
$js_exclusions = get_option( 'autoptimize_js_exclude', '' );
|
270 |
if ( strpos( $js_exclusions, 'js/jquery/jquery.js' ) !== false && strpos( $js_exclusions, 'js/jquery/jquery.min.js' ) === false ) {
|
271 |
$js_exclusions .= ', js/jquery/jquery.min.js';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
|
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 3.0.
|
9 |
|
10 |
Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asyncing JS, removing emoji cruft and more.
|
11 |
|
@@ -324,6 +324,10 @@ Just [fork Autoptimize on Github](https://github.com/futtta/autoptimize) and cod
|
|
324 |
|
325 |
== Changelog ==
|
326 |
|
|
|
|
|
|
|
|
|
327 |
= 3.0.1 =
|
328 |
* fix for minification of inline script with type text/template breaking the template (e.g. ninja forms), hat tip to @bobsled.
|
329 |
* fix for regression in import of CSS-files where e.g. fontawesome CSS was broken due to being escaped again with help of @bobsled, thanks man!
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.0.2
|
9 |
|
10 |
Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asyncing JS, removing emoji cruft and more.
|
11 |
|
324 |
|
325 |
== Changelog ==
|
326 |
|
327 |
+
= 3.0.2 =
|
328 |
+
* rollback automatic "minify inline CSS/ JS" which broke more then expected, this will come back as a separate default off option later and can now be enabled with a simple filter: `add_filter( 'autoptimize_html_minify_inline_js_css', '__return_true');` .
|
329 |
+
* fix for "Call to undefined method autoptimizeOptionWrapper::delete_option()" in autoptimizeVersionUpdatesHandler.php
|
330 |
+
|
331 |
= 3.0.1 =
|
332 |
* fix for minification of inline script with type text/template breaking the template (e.g. ninja forms), hat tip to @bobsled.
|
333 |
* fix for regression in import of CSS-files where e.g. fontawesome CSS was broken due to being escaped again with help of @bobsled, thanks man!
|