Skip to content

Commit

Permalink
3.2.2-rc1: Disabled Page Optm features on AMP to avoid webfont js inj…
Browse files Browse the repository at this point in the history
…ect. (@rahulgupta1985)
  • Loading branch information
hi-hai committed Jun 2, 2020
1 parent 29d642a commit 8ebf192
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: LiteSpeed Cache
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
* Description: High-performance page caching and site optimization from LiteSpeed
* Version: 3.2.1
* Version: 3.2.2-rc1
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
Expand Down Expand Up @@ -33,7 +33,7 @@
return;
}

! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.2.1' );
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.2.2-rc1' );

! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR ) ;
! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ) ;// Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Expand Down
5 changes: 3 additions & 2 deletions thirdparty/amp.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ class AMP
*/
public static function preload()
{
if ( ! function_exists( 'is_amp_endpoint' ) || is_admin() || ! isset( $_GET[ 'amp' ] ) ) return ;
do_action( 'litespeed_conf_force', API::O_OPTM_CSS_ASYNC, false );
if ( ! function_exists( 'is_amp_endpoint' ) || is_admin() || ! isset( $_GET[ 'amp' ] ) ) return;
add_filter( 'litespeed_can_optm', '__return_false' );
// do_action( 'litespeed_conf_force', API::O_OPTM_CSS_ASYNC, false );
do_action( 'litespeed_conf_force', API::O_MEDIA_LAZY, false );
do_action( 'litespeed_conf_force', API::O_MEDIA_IFRAME_LAZY, false );
}
Expand Down

0 comments on commit 8ebf192

Please sign in to comment.