AMP for WP – Accelerated Mobile Pages - Version 1.0.77.6

Version Description

(12th June 2021) = * Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062

Download this release

Release Info

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

Code changes from version 1.0.77.5 to 1.0.77.6

README.md 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/25
5
  Requires at least: 3.0
6
  Tested up to: 5.7
7
- Stable tag: 1.0.77.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 1.0.77.5 (10th June 2021) =
197
  * Fixed: Some issues found while refresh the individual extension from the Extension section #5056
198
  * Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
@@ -212,16 +215,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
212
  * Fixed: Debug Warning Function get_magic_quotes_gpc() is deprecated #5035
213
  * Fixed: Debug Warning Trying to get property 'ID' of non-object #5046
214
 
215
- = 1.0.77.3 (27th May 2021) =
216
- * Improvements: Added Compatibility with WebP Express plugin #4357
217
- * Improvements: Added an option to allow users to upload and use local fonts on AMP #4264
218
- * Improvements: Added Muffin builder Pagebuilder Support in AMP Pagebuilder Extension #5015
219
- * Fixed: Fatal error when both Sassy Social Share and Optimize CSS are enabled #5032
220
- * Fixed: Issues with Megashop theme #5010
221
- * Fixed: Images not sanitized when added using Muffin Pagebuilder #5013
222
- * Fixed: Hide featured images on a single post if this is older than certain date #5018
223
- * Fixed: Getting AMP validation Error in Add Widget After Content plugin #5027
224
- * Fixed: Query Monitor not working on AMP pages #5025
225
- * Fixed: Full-size image is always preloaded for the featured image in Swift theme #5038
226
-
227
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.7
7
+ Stable tag: 1.0.77.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
193
 
194
  == Changelog ==
195
 
196
+ = 1.0.77.6 (12th June 2021) =
197
+ * Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
198
+
199
  = 1.0.77.5 (10th June 2021) =
200
  * Fixed: Some issues found while refresh the individual extension from the Extension section #5056
201
  * Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
215
  * Fixed: Debug Warning Function get_magic_quotes_gpc() is deprecated #5035
216
  * Fixed: Debug Warning Trying to get property 'ID' of non-object #5046
217
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
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: 1.0.77.5
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
- define('AMPFORWP_VERSION','1.0.77.5');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
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: 1.0.77.6
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
+ define('AMPFORWP_VERSION','1.0.77.6');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 1.0.77.5 (10th June 2021) =
4
  * Fixed: Some issues found while refresh the individual extension from the Extension section #5056
5
  * Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
1
  == Changelog ==
2
 
3
+ = 1.0.77.6 (12th June 2021) =
4
+ * Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
5
+
6
  = 1.0.77.5 (10th June 2021) =
7
  * Fixed: Some issues found while refresh the individual extension from the Extension section #5056
8
  * Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
includes/features/performance/performance-functions.php CHANGED
@@ -72,6 +72,13 @@ function ampforwp_minify_html_output($content_buffer){
72
  if(preg_match('/<animatetransform(.*?)<\/animatetransform>/', $content_buffer)){
73
  $content_buffer = preg_replace('/<animatetransform(.*?)<\/animatetransform>/', '', $content_buffer);
74
  }
 
 
 
 
 
 
 
75
  global $redux_builder_amp;
76
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
77
  return $content_buffer;
72
  if(preg_match('/<animatetransform(.*?)<\/animatetransform>/', $content_buffer)){
73
  $content_buffer = preg_replace('/<animatetransform(.*?)<\/animatetransform>/', '', $content_buffer);
74
  }
75
+ if( function_exists('aioseo') && preg_match('/<script type="text\/javascript"(.*?)>/', $content_buffer)){
76
+ $content_buffer = preg_replace('/<script type="text\/javascript"(.*?)>/', '', $content_buffer);
77
+ $content_buffer = preg_replace('/window.ga=window.ga||function()(.*?)/', '', $content_buffer);
78
+ $content_buffer = preg_replace('/\|\|\(\)\{\(ga\.q=ga\.q\|\|\[\]\).push\(arguments\)};ga\.l(.*?);/', '', $content_buffer);
79
+ $content_buffer = preg_replace('/ga\(\'create\',(.*?),\s{\s\'cookieDomain\':\s\'(.*?)\'\s}\s\);/', '', $content_buffer);
80
+ $content_buffer = preg_replace('/ga\(\'(.*?)\',(.*?)\'(.*?)\'\);/', '', $content_buffer);
81
+ }
82
  global $redux_builder_amp;
83
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
84
  return $content_buffer;
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/25
5
  Requires at least: 3.0
6
  Tested up to: 5.7
7
- Stable tag: 1.0.77.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
193
  = 1.0.77.5 (10th June 2021) =
194
  * Fixed: Some issues found while refresh the individual extension from the Extension section #5056
195
  * Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
@@ -209,16 +212,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
209
  * Fixed: Debug Warning Function get_magic_quotes_gpc() is deprecated #5035
210
  * Fixed: Debug Warning Trying to get property 'ID' of non-object #5046
211
 
212
- = 1.0.77.3 (27th May 2021) =
213
- * Improvements: Added Compatibility with WebP Express plugin #4357
214
- * Improvements: Added an option to allow users to upload and use local fonts on AMP #4264
215
- * Improvements: Added Muffin builder Pagebuilder Support in AMP Pagebuilder Extension #5015
216
- * Fixed: Fatal error when both Sassy Social Share and Optimize CSS are enabled #5032
217
- * Fixed: Issues with Megashop theme #5010
218
- * Fixed: Images not sanitized when added using Muffin Pagebuilder #5013
219
- * Fixed: Hide featured images on a single post if this is older than certain date #5018
220
- * Fixed: Getting AMP validation Error in Add Widget After Content plugin #5027
221
- * Fixed: Query Monitor not working on AMP pages #5025
222
- * Fixed: Full-size image is always preloaded for the featured image in Swift theme #5038
223
-
224
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.7
7
+ Stable tag: 1.0.77.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
190
 
191
  == Changelog ==
192
 
193
+ = 1.0.77.6 (12th June 2021) =
194
+ * Fixed: Custom JavaScript is not allowed error when analytics added by All in one SEO #5062
195
+
196
  = 1.0.77.5 (10th June 2021) =
197
  * Fixed: Some issues found while refresh the individual extension from the Extension section #5056
198
  * Fixed: Referenced AMP URL is self-canonical AMP when AMP takeover is enabled #5053
212
  * Fixed: Debug Warning Function get_magic_quotes_gpc() is deprecated #5035
213
  * Fixed: Debug Warning Trying to get property 'ID' of non-object #5046
214
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)