AMP for WP – Accelerated Mobile Pages - Version 0.9.45.2

Version Description

(21 March 2017) = * Post 0.9.45 bugs fixed and released as an urgent update.

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 0.9.45.2
Comparing to
See all releases

Code changes from version 0.9.45.1 to 0.9.45.2

accelerated-moblie-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
- Version: 0.9.45.1
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/5
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
16
  define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
17
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
18
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
19
- define('AMPFORWP_VERSION','0.9.45.1');
20
  // any changes to AMP_QUERY_VAR should be refelected here
21
  define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
22
 
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
+ Version: 0.9.45.2
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/5
16
  define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
17
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
18
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
19
+ define('AMPFORWP_VERSION','0.9.45.2');
20
  // any changes to AMP_QUERY_VAR should be refelected here
21
  define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
22
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/5
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
- Stable tag: 0.9.45.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -129,6 +129,9 @@ You can contact me using this url: http://ampforwp.com/contact/
129
 
130
  == Changelog ==
131
 
 
 
 
132
  = 0.9.45.1 (19 March 2017) =
133
  * Post 0.9.45 bugs fixed and released as an urgent update.
134
 
4
  Donate link: https://www.paypal.me/Kaludi/5
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 0.9.45.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
129
 
130
  == Changelog ==
131
 
132
+ = 0.9.45.2 (21 March 2017) =
133
+ * Post 0.9.45 bugs fixed and released as an urgent update.
134
+
135
  = 0.9.45.1 (19 March 2017) =
136
  * Post 0.9.45 bugs fixed and released as an urgent update.
137
 
templates/features.php CHANGED
@@ -1334,22 +1334,24 @@ function ampforwp_lazy_loading_plugins_compatibility() {
1334
  // Lazy Load
1335
  add_filter( 'lazyload_is_enabled', '__return_false', PHP_INT_MAX );
1336
  }
1337
-
1338
- add_action('amp_init','ampforwp_cache_compatible_activator');
1339
- function ampforwp_cache_compatible_activator(){
1340
- add_action('template_redirect','ampforwp_cache_plugin_compatible');
1341
- }
1342
- function ampforwp_cache_plugin_compatible(){
1343
- $ampforwp_is_amp_endpoint = ampforwp_is_amp_endpoint();
1344
- if ( ! $ampforwp_is_amp_endpoint ) {
1345
- return;
1346
- }
1347
- /**
1348
- * W3 total cache
1349
- */
1350
- add_filter( 'w3tc_minify_js_enable', array( $this, '_return_false' ) );
1351
- add_filter( 'w3tc_minify_css_enable', array( $this, '_return_false' ) );
1352
- }
 
 
1353
 
1354
  //Removing bj loading for amp
1355
  function ampforwp_remove_bj_load() {
1334
  // Lazy Load
1335
  add_filter( 'lazyload_is_enabled', '__return_false', PHP_INT_MAX );
1336
  }
1337
+ //
1338
+ // This Caused issue, Please see: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/713
1339
+ //
1340
+ //add_action('amp_init','ampforwp_cache_compatible_activator');
1341
+ //function ampforwp_cache_compatible_activator(){
1342
+ // add_action('template_redirect','ampforwp_cache_plugin_compatible');
1343
+ //}
1344
+ //function ampforwp_cache_plugin_compatible(){
1345
+ // $ampforwp_is_amp_endpoint = ampforwp_is_amp_endpoint();
1346
+ // if ( ! $ampforwp_is_amp_endpoint ) {
1347
+ // return;
1348
+ // }
1349
+ // /**
1350
+ // * W3 total cache
1351
+ // */
1352
+ // add_filter( 'w3tc_minify_js_enable', array( $this, '_return_false' ) );
1353
+ // add_filter( 'w3tc_minify_css_enable', array( $this, '_return_false' ) );
1354
+ //}
1355
 
1356
  //Removing bj loading for amp
1357
  function ampforwp_remove_bj_load() {