AMP for WP – Accelerated Mobile Pages - Version 0.9.45.5

Version Description

(25 March 2017) = * WP rocket conflict solved
* Cannot set property innerHTML of null issue fixed

Download this release

Release Info

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

Code changes from version 0.9.45.3 to 0.9.45.5

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.3
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.3');
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.5
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.5');
20
  // any changes to AMP_QUERY_VAR should be refelected here
21
  define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
22
 
includes/welcome.php CHANGED
@@ -21,8 +21,8 @@ function ampforwp_welcome_screen_do_activation_redirect() {
21
  add_action( 'admin_init', 'ampforwp_welcome_screen_do_activation_redirect_parent' );
22
  function ampforwp_welcome_screen_do_activation_redirect_parent() {
23
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
24
- $amp_plugin_activation_check = is_plugin_active( 'amp/amp.php' );
25
-
26
  // Bail if option is already set or plugin is deactivated
27
  if ( get_option( 'ampforwp_parent_plugin_check' ) || $amp_plugin_activation_check == false ) {
28
  return;
@@ -60,13 +60,13 @@ function ampforwp_welcome_screen_content() {
60
 
61
  <div class="ampforwp-post-installtion-instructions">
62
 
63
- <h1 style="color:#388E3C;font-weight:500"><i class="dashicons dashicons-yes"></i>AMP is now Installed!</h1>
64
  <p style=" font-family: georgia; font-size: 20px; font-style: italic; margin-bottom: 3px; line-height: 1.5; color: #666;">Thank you so much for installing the AMPforWP plugin!</p>
65
  <p style="font-family: georgia;font-size: 20px;margin-top: 4px;font-style: italic;line-height: 1.5;color: #666;">Our team works really hard to deliver good user experience to you.</p>
66
  <div class="install_options">
67
  <div class="install_options_left">
68
- <p style="margin-top:0;margin-bottom:0;font-size: 15px;line-height: 1;"><b>Head Over to Settings</b></p>
69
- <p style="margin-top: 8px;margin-bottom:0px;">Time to customize the your AMP!</p>
70
  </div>
71
  <div class="install_options_right">
72
  <a href="<?php echo esc_url( admin_url('admin.php?page=amp_options') );?>">AMP Options Panel</a>
@@ -74,11 +74,11 @@ function ampforwp_welcome_screen_content() {
74
  <div class="clear"></div>
75
  </div>
76
 
77
-
78
 
79
  <h1 style="color: #303F9F;font-weight: 500;margin-top: 48px;">
80
  <i class="dashicons dashicons-editor-help" style="font-size: 36px; margin-right: 20px; margin-top: -1px;"></i>Need Help?
81
- </h1>
82
  <p style="font-family: georgia;font-size: 20px;font-style: italic;margin-bottom: 3px;line-height: 1.5;margin-top: 11px;color: #666;">We're bunch of passionate people that are dedicated towards helping our users. We will be happy to help you!</p>
83
  <div class="getstarted_wrapper">
84
  <div class="getstarted_options">
@@ -87,7 +87,7 @@ function ampforwp_welcome_screen_content() {
87
  <li><a href="https://ampforwp.com/getting-started-with-amp" target="_blank">Getting Started with AMP</a></li>
88
  <li><a href="https://ampforwp.com/add-menus-amp/" target="_blank">Adding Navigation Menu</a></li>
89
  <li><a href="https://ampforwp.com/add-analytics-amp/" target="_blank">Adding Google Analtyics</a></li>
90
- <a class="getstarted_btn" href="https://ampforwp.com/help/" target="_blank">View all Tutorials</a>
91
  </ul> </p>
92
  </div>
93
  <div class="getstarted_links">
@@ -106,7 +106,7 @@ function ampforwp_welcome_screen_content() {
106
  }
107
 
108
  function ampforwp_plugin_parent_activation() {
109
-
110
  add_thickbox(); // @since 1.0.53
111
 
112
  include( ABSPATH . "wp-admin/includes/plugin-install.php" );
@@ -125,7 +125,7 @@ function ampforwp_plugin_parent_activation() {
125
  $args = apply_filters( "install_plugins_table_api_args_$tab", $args );
126
  $api = plugins_api( "query_plugins", $args );
127
  $item = $api->plugins;
128
-
129
  $plugins_allowedtags = array(
130
  'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ),
131
  'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ),
@@ -138,11 +138,11 @@ function ampforwp_plugin_parent_activation() {
138
 
139
  ?>
140
  <form id="plugin-filter">
141
-
142
- <div class="wrap">
143
  <div class="ampforwp-pre-installtion-instructions">
144
- <h1 style="color:#388E3C;font-weight:500"><i class="dashicons dashicons-warning"></i>Almost done. One last step remaining.</h1>
145
- <p><b>This plugin requires the following plugin: <i>AMP</i></b></p>
146
  <p>Automattic, the company behind WordPress has created a framework for AMP (also known as Default AMP plugin) which we are using as the core.</p><p>To complete the installation, you just need to click on the 'Finish Installation' button and default AMP plugin will be installed. Remember, to activate the plugin and you will be redirected to this screen again.</p>
147
  <div id="ampforwp-network-status"></div>
148
  </div>
@@ -155,7 +155,7 @@ function ampforwp_plugin_parent_activation() {
155
  border-radius: 2px;
156
  margin-top: 19px;}
157
  .install_options_left{float:left}
158
- .install_options_right{float:right}
159
  .install_options_right a{
160
  background: #4CAF50;
161
  padding: 11px 20px 12px 20px;
@@ -165,14 +165,14 @@ background: #4CAF50;
165
  display: inline-block;
166
  font-size: 16px;
167
  border-radius: 3px;}
168
- .getstarted_wrapper{
169
  max-width: 510px;
170
  margin-top: 20px; }
171
  .getstarted_options{ float: left}
172
  .getstarted_options{float: left; background: #fff; border: 1px solid #ddd; padding: 10px 30px 10px 30px; border-radius: 2px; }
173
  .getstarted_links{float: right; background: #fff; border: 1px solid #ddd; padding: 10px 30px 10px 30px; border-radius: 2px; }
174
  .ampforwp-post-installtion-instructions, .ampforwp-pre-installtion-instructions{ margin-left: 15px;}
175
- .getstarted_ul li{ list-style-type: decimal; list-style-position: inside; }
176
  a.getstarted_btn{ background: #666;
177
  color: #fff;
178
  padding: 9px 35px 9px 35px;
@@ -187,8 +187,8 @@ background: #4CAF50;
187
  position: relative;
188
  top: 1px;
189
  font-size: 32px;
190
- margin-right: 18px;
191
- }
192
  .dashicons-yes{
193
  margin-right: 25px;
194
  }
@@ -207,10 +207,10 @@ background: #4CAF50;
207
  .ampforwp-plugin-action-buttons li {
208
  display: inline-block;
209
  margin-left: 1em;
210
- }
211
  .ampforwp-button-con {
212
  padding-right: 15px;
213
- }
214
  .ampforwp-button-install {
215
  background: none repeat scroll 0% 0% #2EA2CC !important;
216
  border-color: #0074A2 !important;
@@ -219,7 +219,7 @@ background: #4CAF50;
219
  }
220
  .ampforwp-button-install:focus {
221
  box-shadow: 0px 0px 0px 1px #5B9DD9, 0px 0px 2px 1px rgba(30, 140, 190, 0.8) !important;
222
- }
223
  .ampforwp-button-install:hover {
224
  color: #FFF !important;
225
  background: none repeat scroll 0% 0% #5B9DD9 !important;
@@ -245,16 +245,16 @@ background: #4CAF50;
245
  .drop-shadow:before,
246
  .drop-shadow:after {
247
  content:"";
248
- position:absolute;
249
  z-index:-2;
250
  } .authors{font-style: italic}
251
  .ampforwp-custom-btn a{ font-size: 18px !important; background: #388E3C !important; border: 0px !important; border-radius: 2px !important; box-shadow: none !important; padding: 8px 20px !important; height: auto !important}
252
  .plugin-card-top h4{margin-top: 10px;}
253
- </style>
254
-
255
  <div style="margin-top:30px;" class="wp-list-table widefat plugin-install">
256
  <div id="the-list">
257
-
258
  <?php
259
  function ampforwp_plugin_activation_link($plugin) {
260
  $activateUrl = sprintf(admin_url('plugins.php?action=activate&plugin=%s&plugin_status=all&paged=1&s'), $plugin);
@@ -269,7 +269,7 @@ background: #4CAF50;
269
  if ( is_object( $plugin ) ) {
270
  $plugin = (array) $plugin;
271
  }
272
-
273
  $title = wp_kses( $plugin['name'], $plugins_allowedtags );
274
  // Remove any HTML from the description.
275
  $description = strip_tags( $plugin['short_description'] );
@@ -286,7 +286,7 @@ background: #4CAF50;
286
 
287
  if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
288
  $status = install_plugin_install_status( $plugin );
289
-
290
  if ( $status['status'] == 'latest_installed' && is_plugin_inactive( $status['file'] ) ) {
291
  $status['activation'] = 'not_activated';
292
  } elseif ( $status['status'] == 'latest_installed' && is_plugin_active( $status['file'] ) ) {
@@ -325,7 +325,7 @@ background: #4CAF50;
325
  $action_links[] = '<span class="button button-disabled" title="' . esc_attr__( 'This plugin is already installed and is up to date' ) . ' ">' . _x( 'Installed', 'plugin' ) . '</span>';
326
  break;
327
  }
328
- }
329
 
330
  $details_link = self_admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
331
  '&amp;TB_iframe=true&amp;width=750&amp;height=550' );
@@ -362,14 +362,14 @@ background: #4CAF50;
362
  </div>
363
  <div class="desc column-description" style="margin-right: 20px !important;">
364
  <p><?php echo $description; ?></p>
365
- <p class="authors">by Automattic</p>
366
  </div>
367
  </div>
368
  <div class="ampforwp-button-con">
369
  <?php
370
  if ( $action_links ) {
371
  echo '<ul class="ampforwp-plugin-action-buttons ampforwp-custom-btn">';
372
- echo '<li>' . $action_links[0] . '</li>';
373
  echo '</ul>';
374
  } ?>
375
  </div>
@@ -377,39 +377,47 @@ background: #4CAF50;
377
  <?php
378
  } ?>
379
 
380
- </div>
381
- </div>
382
- </div>
383
- </form>
384
-
385
- <?php
386
  }
387
 
388
  add_action('admin_footer','ampforwp_offline_admin_notice');
389
- function ampforwp_offline_admin_notice() {
390
 
391
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
392
  $amp_plugin_activation_check = is_plugin_active( 'amp/amp.php' );
393
 
394
  if ( $amp_plugin_activation_check ) { ?>
395
  <style>
396
- .dashboard_page_ampforwp-welcome-page .plugin-card.drop-shadow.lifted,
397
  .ampforwp-pre-installtion-instructions{
398
  display: none;
399
- }
400
  </style>
401
  <?php } else { ?>
402
  <style>
403
- .ampforwp-post-installtion-instructions{ display: none; }
404
  </style>
405
- <?php } ?>
406
- <script>
407
- const statusContainer = document.getElementById('ampforwp-network-status');
408
- if(! navigator.onLine) {
409
- statusContainer.innerHTML = "<h1 style='color:#E91E63'> You seems to have been Offline. Please connect to network to continue the installation.</h1>";
410
- } else {
411
- statusContainer.innerHTML = "";
412
- }
413
- </script>
 
 
 
 
 
 
 
 
414
  <?php
415
  }
21
  add_action( 'admin_init', 'ampforwp_welcome_screen_do_activation_redirect_parent' );
22
  function ampforwp_welcome_screen_do_activation_redirect_parent() {
23
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
24
+ $amp_plugin_activation_check = is_plugin_active( 'amp/amp.php' );
25
+
26
  // Bail if option is already set or plugin is deactivated
27
  if ( get_option( 'ampforwp_parent_plugin_check' ) || $amp_plugin_activation_check == false ) {
28
  return;
60
 
61
  <div class="ampforwp-post-installtion-instructions">
62
 
63
+ <h1 style="color:#388E3C;font-weight:500"><i class="dashicons dashicons-yes"></i>AMP is now Installed!</h1>
64
  <p style=" font-family: georgia; font-size: 20px; font-style: italic; margin-bottom: 3px; line-height: 1.5; color: #666;">Thank you so much for installing the AMPforWP plugin!</p>
65
  <p style="font-family: georgia;font-size: 20px;margin-top: 4px;font-style: italic;line-height: 1.5;color: #666;">Our team works really hard to deliver good user experience to you.</p>
66
  <div class="install_options">
67
  <div class="install_options_left">
68
+ <p style="margin-top:0;margin-bottom:0;font-size: 15px;line-height: 1;"><b>Head Over to Settings</b></p>
69
+ <p style="margin-top: 8px;margin-bottom:0px;">Time to customize the your AMP!</p>
70
  </div>
71
  <div class="install_options_right">
72
  <a href="<?php echo esc_url( admin_url('admin.php?page=amp_options') );?>">AMP Options Panel</a>
74
  <div class="clear"></div>
75
  </div>
76
 
77
+
78
 
79
  <h1 style="color: #303F9F;font-weight: 500;margin-top: 48px;">
80
  <i class="dashicons dashicons-editor-help" style="font-size: 36px; margin-right: 20px; margin-top: -1px;"></i>Need Help?
81
+ </h1>
82
  <p style="font-family: georgia;font-size: 20px;font-style: italic;margin-bottom: 3px;line-height: 1.5;margin-top: 11px;color: #666;">We're bunch of passionate people that are dedicated towards helping our users. We will be happy to help you!</p>
83
  <div class="getstarted_wrapper">
84
  <div class="getstarted_options">
87
  <li><a href="https://ampforwp.com/getting-started-with-amp" target="_blank">Getting Started with AMP</a></li>
88
  <li><a href="https://ampforwp.com/add-menus-amp/" target="_blank">Adding Navigation Menu</a></li>
89
  <li><a href="https://ampforwp.com/add-analytics-amp/" target="_blank">Adding Google Analtyics</a></li>
90
+ <a class="getstarted_btn" href="https://ampforwp.com/help/" target="_blank">View all Tutorials</a>
91
  </ul> </p>
92
  </div>
93
  <div class="getstarted_links">
106
  }
107
 
108
  function ampforwp_plugin_parent_activation() {
109
+
110
  add_thickbox(); // @since 1.0.53
111
 
112
  include( ABSPATH . "wp-admin/includes/plugin-install.php" );
125
  $args = apply_filters( "install_plugins_table_api_args_$tab", $args );
126
  $api = plugins_api( "query_plugins", $args );
127
  $item = $api->plugins;
128
+
129
  $plugins_allowedtags = array(
130
  'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ),
131
  'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ),
138
 
139
  ?>
140
  <form id="plugin-filter">
141
+
142
+ <div class="wrap">
143
  <div class="ampforwp-pre-installtion-instructions">
144
+ <h1 style="color:#388E3C;font-weight:500"><i class="dashicons dashicons-warning"></i>Almost done. One last step remaining.</h1>
145
+ <p><b>This plugin requires the following plugin: <i>AMP</i></b></p>
146
  <p>Automattic, the company behind WordPress has created a framework for AMP (also known as Default AMP plugin) which we are using as the core.</p><p>To complete the installation, you just need to click on the 'Finish Installation' button and default AMP plugin will be installed. Remember, to activate the plugin and you will be redirected to this screen again.</p>
147
  <div id="ampforwp-network-status"></div>
148
  </div>
155
  border-radius: 2px;
156
  margin-top: 19px;}
157
  .install_options_left{float:left}
158
+ .install_options_right{float:right}
159
  .install_options_right a{
160
  background: #4CAF50;
161
  padding: 11px 20px 12px 20px;
165
  display: inline-block;
166
  font-size: 16px;
167
  border-radius: 3px;}
168
+ .getstarted_wrapper{
169
  max-width: 510px;
170
  margin-top: 20px; }
171
  .getstarted_options{ float: left}
172
  .getstarted_options{float: left; background: #fff; border: 1px solid #ddd; padding: 10px 30px 10px 30px; border-radius: 2px; }
173
  .getstarted_links{float: right; background: #fff; border: 1px solid #ddd; padding: 10px 30px 10px 30px; border-radius: 2px; }
174
  .ampforwp-post-installtion-instructions, .ampforwp-pre-installtion-instructions{ margin-left: 15px;}
175
+ .getstarted_ul li{ list-style-type: decimal; list-style-position: inside; }
176
  a.getstarted_btn{ background: #666;
177
  color: #fff;
178
  padding: 9px 35px 9px 35px;
187
  position: relative;
188
  top: 1px;
189
  font-size: 32px;
190
+ margin-right: 18px;
191
+ }
192
  .dashicons-yes{
193
  margin-right: 25px;
194
  }
207
  .ampforwp-plugin-action-buttons li {
208
  display: inline-block;
209
  margin-left: 1em;
210
+ }
211
  .ampforwp-button-con {
212
  padding-right: 15px;
213
+ }
214
  .ampforwp-button-install {
215
  background: none repeat scroll 0% 0% #2EA2CC !important;
216
  border-color: #0074A2 !important;
219
  }
220
  .ampforwp-button-install:focus {
221
  box-shadow: 0px 0px 0px 1px #5B9DD9, 0px 0px 2px 1px rgba(30, 140, 190, 0.8) !important;
222
+ }
223
  .ampforwp-button-install:hover {
224
  color: #FFF !important;
225
  background: none repeat scroll 0% 0% #5B9DD9 !important;
245
  .drop-shadow:before,
246
  .drop-shadow:after {
247
  content:"";
248
+ position:absolute;
249
  z-index:-2;
250
  } .authors{font-style: italic}
251
  .ampforwp-custom-btn a{ font-size: 18px !important; background: #388E3C !important; border: 0px !important; border-radius: 2px !important; box-shadow: none !important; padding: 8px 20px !important; height: auto !important}
252
  .plugin-card-top h4{margin-top: 10px;}
253
+ </style>
254
+
255
  <div style="margin-top:30px;" class="wp-list-table widefat plugin-install">
256
  <div id="the-list">
257
+
258
  <?php
259
  function ampforwp_plugin_activation_link($plugin) {
260
  $activateUrl = sprintf(admin_url('plugins.php?action=activate&plugin=%s&plugin_status=all&paged=1&s'), $plugin);
269
  if ( is_object( $plugin ) ) {
270
  $plugin = (array) $plugin;
271
  }
272
+
273
  $title = wp_kses( $plugin['name'], $plugins_allowedtags );
274
  // Remove any HTML from the description.
275
  $description = strip_tags( $plugin['short_description'] );
286
 
287
  if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
288
  $status = install_plugin_install_status( $plugin );
289
+
290
  if ( $status['status'] == 'latest_installed' && is_plugin_inactive( $status['file'] ) ) {
291
  $status['activation'] = 'not_activated';
292
  } elseif ( $status['status'] == 'latest_installed' && is_plugin_active( $status['file'] ) ) {
325
  $action_links[] = '<span class="button button-disabled" title="' . esc_attr__( 'This plugin is already installed and is up to date' ) . ' ">' . _x( 'Installed', 'plugin' ) . '</span>';
326
  break;
327
  }
328
+ }
329
 
330
  $details_link = self_admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
331
  '&amp;TB_iframe=true&amp;width=750&amp;height=550' );
362
  </div>
363
  <div class="desc column-description" style="margin-right: 20px !important;">
364
  <p><?php echo $description; ?></p>
365
+ <p class="authors">by Automattic</p>
366
  </div>
367
  </div>
368
  <div class="ampforwp-button-con">
369
  <?php
370
  if ( $action_links ) {
371
  echo '<ul class="ampforwp-plugin-action-buttons ampforwp-custom-btn">';
372
+ echo '<li>' . $action_links[0] . '</li>';
373
  echo '</ul>';
374
  } ?>
375
  </div>
377
  <?php
378
  } ?>
379
 
380
+ </div>
381
+ </div>
382
+ </div>
383
+ </form>
384
+
385
+ <?php
386
  }
387
 
388
  add_action('admin_footer','ampforwp_offline_admin_notice');
389
+ function ampforwp_offline_admin_notice() {
390
 
391
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
392
  $amp_plugin_activation_check = is_plugin_active( 'amp/amp.php' );
393
 
394
  if ( $amp_plugin_activation_check ) { ?>
395
  <style>
396
+ .dashboard_page_ampforwp-welcome-page .plugin-card.drop-shadow.lifted,
397
  .ampforwp-pre-installtion-instructions{
398
  display: none;
399
+ }
400
  </style>
401
  <?php } else { ?>
402
  <style>
403
+ .ampforwp-post-installtion-instructions{ display: none; }
404
  </style>
405
+ <?php }
406
+ $current_screen = get_current_screen();
407
+ if( $current_screen ->id === "dashboard_page_ampforwp-welcome-page" ) {?>
408
+ <script>
409
+ (function(){
410
+ const statusContainer = document.getElementById('ampforwp-network-status');
411
+ if(! navigator.onLine) {
412
+ statusContainer.innerHTML = "<h1 style='color:#E91E63'> You seems to have been Offline. Please connect to network to continue the installation.</h1>";
413
+ } else {
414
+ if( statusContainer ) {
415
+ statusContainer.innerHTML = "";
416
+ }
417
+ }
418
+ })();
419
+
420
+ </script>
421
+ <?php } ?>
422
  <?php
423
  }
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.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -129,6 +129,10 @@ You can contact me using this url: http://ampforwp.com/contact/
129
 
130
  == Changelog ==
131
 
 
 
 
 
132
  = 0.9.45.3 (21 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.5
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.5 (25 March 2017) =
133
+ * WP rocket conflict solved
134
+ * Cannot set property ‘innerHTML’ of null issue fixed
135
+
136
  = 0.9.45.3 (21 March 2017) =
137
  * Post 0.9.45 bugs fixed and released as an urgent update.
138
 
templates/features.php CHANGED
@@ -1319,10 +1319,10 @@ function ampforwp_lazy_loading_plugins_compatibility() {
1319
  remove_filter( 'rocket_buffer', '__rocket_protocol_rewrite', PHP_INT_MAX );
1320
  remove_filter( 'wp_calculate_image_srcset', '__rocket_protocol_rewrite_srcset', PHP_INT_MAX );
1321
  // Disable Concatenate Google Fonts
1322
- add_filter( 'get_rocket_option_minify_google_fonts', '__return_false', PHP_INT_MAX );
1323
  // Disable CSS & JS magnification
1324
- add_filter( 'get_rocket_option_minify_js', '__return_false', PHP_INT_MAX );
1325
- add_filter( 'get_rocket_option_minify_css', '__return_false', PHP_INT_MAX );
1326
 
1327
  //Lazy Load XT
1328
  global $lazyloadxt;
1319
  remove_filter( 'rocket_buffer', '__rocket_protocol_rewrite', PHP_INT_MAX );
1320
  remove_filter( 'wp_calculate_image_srcset', '__rocket_protocol_rewrite_srcset', PHP_INT_MAX );
1321
  // Disable Concatenate Google Fonts
1322
+ // add_filter( 'get_rocket_option_minify_google_fonts', '__return_false', PHP_INT_MAX );
1323
  // Disable CSS & JS magnification
1324
+ // add_filter( 'get_rocket_option_minify_js', '__return_false', PHP_INT_MAX );
1325
+ // add_filter( 'get_rocket_option_minify_css', '__return_false', PHP_INT_MAX );
1326
 
1327
  //Lazy Load XT
1328
  global $lazyloadxt;