| @@ -1,16 +1,17 @@ | ||
| 1 | 1 | <?php |
| 2 | -/* | |
| 3 | -Plugin Name: Autoptimize | |
| 4 | -Plugin URI: https://autoptimize.com/ | |
| 5 | -Description: Optimize your website's performance: JS, CSS, HTML, images, Google Fonts and more! | |
| 6 | -Version: 2.4.0 | |
| 7 | -Author: Frank Goossens (futtta) | |
| 8 | -Author URI: https://autoptimize.com/ | |
| 9 | -Text Domain: autoptimize | |
| 10 | -Released under the GNU General Public License (GPL) | |
| 11 | -http://www.gnu.org/licenses/gpl.txt | |
| 12 | -*/ | |
| 2 | +/** | |
| 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.3 | |
| 7 | + * Author: Frank Goossens (futtta) | |
| 8 | + * Author URI: https://autoptimize.com/ | |
| 9 | + * Text Domain: autoptimize | |
| 10 | + * License: GPLv2 | |
| 11 | + * Released under the GNU General Public License (GPL) | |
| 12 | + * https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt | |
| 13 | + */ | |
| 13 | 14 | |
| 14 | 15 | /** |
| 15 | 16 | * Autoptimize main plugin file. |
| 16 | 17 | */ |
| @@ -19,9 +20,9 @@ | ||
| 19 | 20 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | 21 | exit; |
| 21 | 22 | } |
| 22 | 23 | |
| 23 | -define( 'AUTOPTIMIZE_PLUGIN_VERSION', '2.4.0' ); | |
| 24 | +define( 'AUTOPTIMIZE_PLUGIN_VERSION', '3.0.3' ); | |
| 24 | 25 | |
| 25 | 26 | // plugin_dir_path() returns the trailing slash! |
| 26 | 27 | define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 27 | 28 | define( 'AUTOPTIMIZE_PLUGIN_FILE', __FILE__ ); |
| @@ -26,11 +27,11 @@ | ||
| 26 | 27 | define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 27 | 28 | define( 'AUTOPTIMIZE_PLUGIN_FILE', __FILE__ ); |
| 28 | 29 | |
| 29 | 30 | // Bail early if attempting to run on non-supported php versions. |
| 30 | -if ( version_compare( PHP_VERSION, '5.3', '<' ) ) { | |
| 31 | +if ( version_compare( PHP_VERSION, '5.6', '<' ) ) { | |
| 31 | 32 | function autoptimize_incompatible_admin_notice() { |
| 32 | - echo '<div class="error"><p>' . __( 'Autoptimize requires PHP 5.3 (or higher) to function properly. Please upgrade PHP. The Plugin has been auto-deactivated.', 'autoptimize' ) . '</p></div>'; | |
| 33 | + echo '<div class="error"><p>' . __( 'Autoptimize requires PHP 5.6 (or higher) to function properly. Please upgrade PHP. The Plugin has been auto-deactivated.', 'autoptimize' ) . '</p></div>'; | |
| 33 | 34 | if ( isset( $_GET['activate'] ) ) { |
| 34 | 35 | unset( $_GET['activate'] ); |
| 35 | 36 | } |
| 36 | 37 | } |
| @@ -42,9 +43,9 @@ | ||
| 42 | 43 | return; |
| 43 | 44 | } |
| 44 | 45 | |
| 45 | 46 | function autoptimize_autoload( $class_name ) { |
| 46 | - if ( in_array( $class_name, array( 'Minify_HTML', 'JSMin' ) ) ) { | |
| 47 | + if ( in_array( $class_name, array( 'AO_Minify_HTML', 'JSMin' ) ) ) { | |
| 47 | 48 | $file = strtolower( $class_name ); |
| 48 | 49 | $file = str_replace( '_', '-', $file ); |
| 49 | 50 | $path = dirname( __FILE__ ) . '/classes/external/php/'; |
| 50 | 51 | $filepath = $path . $file . '.php'; |