LiteSpeed Cache - Version 2.9.8.6

Version Description

  • Sep 24 2019 =
  • 3rd: Bypassed page optimizations for AMP. (#359748 PR#169)
  • GUI: Firefox compatibility with radio button state when reloading pages. (#288940 PR#162)
  • GUI: Updated Slack invitation link. (PR#173)
Download this release

Release Info

Developer hailite
Plugin Icon 128x128 LiteSpeed Cache
Version 2.9.8.6
Comparing to
See all releases

Code changes from version 2.9.8.5 to 2.9.8.6

admin/litespeed-cache-admin-display.class.php CHANGED
@@ -911,7 +911,7 @@ class LiteSpeed_Cache_Admin_Display
911
 
912
  $checked = $checked ? ' checked ' : '' ;
913
 
914
- return "<input type='radio' name='". LiteSpeed_Cache_Config::OPTION_NAME . "$id' id='$id_attr' value='$val' $checked /> <label for='$id_attr'>$txt</label>" ;
915
  }
916
 
917
  /**
911
 
912
  $checked = $checked ? ' checked ' : '' ;
913
 
914
+ return "<input type='radio' autocomplete='off' name='". LiteSpeed_Cache_Config::OPTION_NAME . "$id' id='$id_attr' value='$val' $checked /> <label for='$id_attr'>$txt</label>" ;
915
  }
916
 
917
  /**
admin/tpl/esi_widget_edit.php CHANGED
@@ -49,7 +49,7 @@ $display = LiteSpeed_Cache_Admin_Display::get_instance() ;
49
  list( $v, $txt ) = $v ;
50
  $id_attr = $widget->get_field_id( $id ) . '_' . $v ;
51
  $checked = $esi === $v ? 'checked' : '' ;
52
- echo "<input type='radio' name='$name' id='$id_attr' value='$v' $checked /> <label for='$id_attr'>$txt</label>" ;
53
  }
54
  ?>
55
 
49
  list( $v, $txt ) = $v ;
50
  $id_attr = $widget->get_field_id( $id ) . '_' . $v ;
51
  $checked = $esi === $v ? 'checked' : '' ;
52
+ echo "<input type='radio' autocomplete='off' name='$name' id='$id_attr' value='$v' $checked /> <label for='$id_attr'>$txt</label>" ;
53
  }
54
  ?>
55
 
admin/tpl/inc/admin_footer.php CHANGED
@@ -10,7 +10,7 @@ $wiki = '<a href="https://www.litespeedtech.com/support/wiki/doku.php/litespeed_
10
 
11
  $forum = '<a href="https://wordpress.org/support/plugin/litespeed-cache" target="_blank">' . __( 'Visit LSCWP support forum', 'litespeed-cache' ) . '</a>' ;
12
 
13
- $community = '<a href="https://goo.gl/FG9S4N" target="_blank">' . __( 'Join LiteSpeed Slack community', 'litespeed-cache' ) . '</a>' ;
14
 
15
  // Change the footer text
16
  if ( ! is_multisite() || is_network_admin() ) {
10
 
11
  $forum = '<a href="https://wordpress.org/support/plugin/litespeed-cache" target="_blank">' . __( 'Visit LSCWP support forum', 'litespeed-cache' ) . '</a>' ;
12
 
13
+ $community = '<a href="https://join.slack.com/t/golitespeed/shared_invite/enQtMzE5ODgxMTUyNTgzLTNiNWQ1MWZlYmI4YjEzNTM4NjdiODY2YTQ0OWVlMzBlNGZkY2E3Y2E4MjIzNmNmZmU0ZjIyNWM1ZmNmMWRlOTk" target="_blank">' . __( 'Join LiteSpeed Slack community', 'litespeed-cache' ) . '</a>' ;
14
 
15
  // Change the footer text
16
  if ( ! is_multisite() || is_network_admin() ) {
admin/tpl/inc/banner_promo.slack.php CHANGED
@@ -10,7 +10,7 @@ if ( ! defined( 'WPINC' ) ) die ;
10
  <div class="litespeed-banner-description-padding-right-15">
11
  <p class="litespeed-banner-desciption-content">
12
  <?php echo __( 'Want to connect with other LiteSpeed users?', 'litespeed-cache' ) ; ?>
13
- <?php echo sprintf( __( 'Join the %s community.', 'litespeed-cache' ), '<a href="https://goo.gl/mrKuTw" target="_blank" class="litespeed-banner-promo-slack-textlink">LiteSpeed Slack</a>' ) ; ?>
14
  </p>
15
  <p class="litespeed-banner-promo-slack-line2">
16
  golitespeed.slack.com
@@ -18,7 +18,7 @@ if ( ! defined( 'WPINC' ) ) die ;
18
  </div>
19
  <div>
20
  <h3 class="litespeed-banner-button-link">
21
- <a href="https://goo.gl/mrKuTw" target="_blank">
22
  <?php echo __( 'Join Us on Slack', 'litespeed-cache' ) ; ?>
23
  </a>
24
  </h3>
10
  <div class="litespeed-banner-description-padding-right-15">
11
  <p class="litespeed-banner-desciption-content">
12
  <?php echo __( 'Want to connect with other LiteSpeed users?', 'litespeed-cache' ) ; ?>
13
+ <?php echo sprintf( __( 'Join the %s community.', 'litespeed-cache' ), '<a href="https://join.slack.com/t/golitespeed/shared_invite/enQtMzE5ODgxMTUyNTgzLTNiNWQ1MWZlYmI4YjEzNTM4NjdiODY2YTQ0OWVlMzBlNGZkY2E3Y2E4MjIzNmNmZmU0ZjIyNWM1ZmNmMWRlOTk" target="_blank" class="litespeed-banner-promo-slack-textlink">LiteSpeed Slack</a>' ) ; ?>
14
  </p>
15
  <p class="litespeed-banner-promo-slack-line2">
16
  golitespeed.slack.com
18
  </div>
19
  <div>
20
  <h3 class="litespeed-banner-button-link">
21
+ <a href="https://join.slack.com/t/golitespeed/shared_invite/enQtMzE5ODgxMTUyNTgzLTNiNWQ1MWZlYmI4YjEzNTM4NjdiODY2YTQ0OWVlMzBlNGZkY2E3Y2E4MjIzNmNmZmU0ZjIyNWM1ZmNmMWRlOTk" target="_blank">
22
  <?php echo __( 'Join Us on Slack', 'litespeed-cache' ) ; ?>
23
  </a>
24
  </h3>
admin/tpl/manage/manage_purge.php CHANGED
@@ -173,25 +173,25 @@ if ( ! is_multisite() || is_network_admin() ) {
173
  <div class="litespeed-row">
174
  <div class="litespeed-switch litespeed-mini">
175
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_CAT;?>
176
- <input type="radio" name="<?php echo $_option_field; ?>" id="purgeby_option_category"
177
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
178
  />
179
  <label for="purgeby_option_category"><?php echo __('Category', 'litespeed-cache'); ?></label>
180
 
181
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_PID;?>
182
- <input type="radio" name="<?php echo $_option_field; ?>" id="purgeby_option_postid"
183
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
184
  />
185
  <label for="purgeby_option_postid"><?php echo __('Post ID', 'litespeed-cache'); ?></label>
186
 
187
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_TAG;?>
188
- <input type="radio" name="<?php echo $_option_field; ?>" id="purgeby_option_tag"
189
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
190
  />
191
  <label for="purgeby_option_tag"><?php echo __('Tag', 'litespeed-cache'); ?></label>
192
 
193
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_URL;?>
194
- <input type="radio" name="<?php echo $_option_field; ?>" id="purgeby_option_url"
195
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
196
  />
197
  <label for="purgeby_option_url"><?php echo __('URL', 'litespeed-cache'); ?></label>
173
  <div class="litespeed-row">
174
  <div class="litespeed-switch litespeed-mini">
175
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_CAT;?>
176
+ <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_category"
177
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
178
  />
179
  <label for="purgeby_option_category"><?php echo __('Category', 'litespeed-cache'); ?></label>
180
 
181
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_PID;?>
182
+ <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_postid"
183
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
184
  />
185
  <label for="purgeby_option_postid"><?php echo __('Post ID', 'litespeed-cache'); ?></label>
186
 
187
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_TAG;?>
188
+ <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_tag"
189
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
190
  />
191
  <label for="purgeby_option_tag"><?php echo __('Tag', 'litespeed-cache'); ?></label>
192
 
193
  <?php $val = LiteSpeed_Cache_Admin_Display::PURGEBY_URL;?>
194
+ <input type="radio" autocomplete="off" name="<?php echo $_option_field; ?>" id="purgeby_option_url"
195
  value="<?php echo $val; ?>" <?php if( $purgeby_option == $val ) echo 'checked'; ?>
196
  />
197
  <label for="purgeby_option_url"><?php echo __('URL', 'litespeed-cache'); ?></label>
inc/litespeed-cache.class.php CHANGED
@@ -26,7 +26,7 @@ class LiteSpeed_Cache
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
- const PLUGIN_VERSION = '2.9.8.5' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
+ const PLUGIN_VERSION = '2.9.8.6' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
includes/litespeed-cache.class.php CHANGED
@@ -26,7 +26,7 @@ class LiteSpeed_Cache
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
- const PLUGIN_VERSION = '2.9.8.5' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
+ const PLUGIN_VERSION = '2.9.8.6' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
litespeed-cache.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: LiteSpeed Cache
16
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
17
  * Description: High-performance page caching and site optimization from LiteSpeed
18
- * Version: 2.9.8.5
19
  * Author: LiteSpeed Technologies
20
  * Author URI: https://www.litespeedtech.com
21
  * License: GPLv3
15
  * Plugin Name: LiteSpeed Cache
16
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
17
  * Description: High-performance page caching and site optimization from LiteSpeed
18
+ * Version: 2.9.8.6
19
  * Author: LiteSpeed Technologies
20
  * Author URI: https://www.litespeedtech.com
21
  * License: GPLv3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: LiteSpeedTech
3
  Tags: caching, optimize, performance, pagespeed, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 5.2.2
6
- Stable tag: 2.9.8.5
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -91,7 +91,7 @@ LSCWP supports WordPress Multisite and is compatible with most popular plugins,
91
  18. Frontend Adminbar Shortcut
92
 
93
  == LSCWP Resources ==
94
- * [Join our Slack community](https://goo.gl/FG9S4N) to connect with other LiteSpeed users.
95
  * [Ask a question on our support forum](https://wordpress.org/support/plugin/litespeed-cache/).
96
  * [View detailed documentation on our wiki](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp).
97
  * [Read WordPress Wednesday tutorials on our blog](http://blog.litespeedtech.com/tag/wordpress-wednesday).
@@ -290,6 +290,11 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
290
 
291
  == Changelog ==
292
 
 
 
 
 
 
293
  = 2.9.8.5 - Aug 21 2019 =
294
  * <strong>CCSS</strong>: Removed potential PHP notice when getting post_type. (@amcgiffert)
295
  * <strong>CDN</strong>: Bypassed CDN replacement on admin page when adding media to page/post. (@martin_bailey)
3
  Tags: caching, optimize, performance, pagespeed, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 5.2.2
6
+ Stable tag: 2.9.8.6
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
91
  18. Frontend Adminbar Shortcut
92
 
93
  == LSCWP Resources ==
94
+ * [Join our Slack community](https://join.slack.com/t/golitespeed/shared_invite/enQtMzE5ODgxMTUyNTgzLTNiNWQ1MWZlYmI4YjEzNTM4NjdiODY2YTQ0OWVlMzBlNGZkY2E3Y2E4MjIzNmNmZmU0ZjIyNWM1ZmNmMWRlOTk) to connect with other LiteSpeed users.
95
  * [Ask a question on our support forum](https://wordpress.org/support/plugin/litespeed-cache/).
96
  * [View detailed documentation on our wiki](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp).
97
  * [Read WordPress Wednesday tutorials on our blog](http://blog.litespeedtech.com/tag/wordpress-wednesday).
290
 
291
  == Changelog ==
292
 
293
+ = 2.9.8.6 - Sep 24 2019 =
294
+ * <strong>3rd</strong>: Bypassed page optimizations for AMP. (#359748 PR#169)
295
+ * <strong>GUI</strong>: Firefox compatibility with radio button state when reloading pages. (#288940 PR#162)
296
+ * <strong>GUI</strong>: Updated Slack invitation link. (PR#173)
297
+
298
  = 2.9.8.5 - Aug 21 2019 =
299
  * <strong>CCSS</strong>: Removed potential PHP notice when getting post_type. (@amcgiffert)
300
  * <strong>CDN</strong>: Bypassed CDN replacement on admin page when adding media to page/post. (@martin_bailey)
thirdparty/lscwp-3rd-amp-bypass.cls.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * The Third Party integration with AMP plugin.
5
+ *
6
+ * @since 2.9.8.6
7
+ * @package LiteSpeed_Cache
8
+ * @subpackage LiteSpeed_Cache/thirdparty
9
+ * @author LiteSpeed Technologies <info@litespeedtech.com>
10
+ */
11
+ if ( ! defined('ABSPATH') ) {
12
+ die() ;
13
+ }
14
+
15
+ LiteSpeed_Cache_API::hook_init( 'LiteSpeed_Cache_ThirdParty_AMP_Bypass::pre_load' ) ;
16
+
17
+ class LiteSpeed_Cache_ThirdParty_AMP_Bypass
18
+ {
19
+ /**
20
+ * CSS async will affect AMP result and
21
+ * Lazyload will inject JS library which AMP not allowed
22
+ * need to force set false before load
23
+ *
24
+ * @since 2.9.8.6
25
+ * @access public
26
+ */
27
+ public static function pre_load()
28
+ {
29
+ if ( ! function_exists( 'is_amp_endpoint' ) || ! is_amp_endpoint() ) return ;
30
+ LiteSpeed_Cache_API::force_option( LiteSpeed_Cache_API::OPID_OPTM_CSS_ASYNC, false ) ;
31
+ LiteSpeed_Cache_API::force_option( LiteSpeed_Cache_API::OPID_MEDIA_IMG_LAZY, false ) ;
32
+ LiteSpeed_Cache_API::force_option( LiteSpeed_Cache_API::OPID_MEDIA_IFRAME_LAZY, false ) ;
33
+ }
34
+ }
thirdparty/lscwp-3rd-woocommerce.cls.php CHANGED
@@ -831,7 +831,7 @@ class LiteSpeed_Cache_ThirdParty_WooCommerce
831
  foreach ($seloptions as $val => $title) {
832
  $checked = $selected_value == $val ? ' checked="checked" ' : '';
833
  $update_intval_html .= "<div class='litespeed-radio-vertical-row'>
834
- <input type='radio' name='{$option_group}[$id]' id='conf_{$id}_$val' value='$val' $checked />
835
  <label for='conf_{$id}_$val'>$title</label>
836
  </div>" ;
837
  }
831
  foreach ($seloptions as $val => $title) {
832
  $checked = $selected_value == $val ? ' checked="checked" ' : '';
833
  $update_intval_html .= "<div class='litespeed-radio-vertical-row'>
834
+ <input type='radio' autocomplete='off' name='{$option_group}[$id]' id='conf_{$id}_$val' value='$val' $checked />
835
  <label for='conf_{$id}_$val'>$title</label>
836
  </div>" ;
837
  }
thirdparty/lscwp-registry-3rd.php CHANGED
@@ -34,6 +34,7 @@ $thirdparty_list = array(
34
  'wpml',
35
  'wpdiscuz',
36
  'facetwp',
 
37
  ) ;
38
 
39
  foreach ($thirdparty_list as $val) {
34
  'wpml',
35
  'wpdiscuz',
36
  'facetwp',
37
+ 'amp-bypass',
38
  ) ;
39
 
40
  foreach ($thirdparty_list as $val) {