Version Description
(5th July 2022) = * Fixed: AMP validation error when youtube video is embeded with query parameters #5292 * Fixed: Instagram embeds not working when added with blockquote tags #5289
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.47 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.46 to 1.0.77.47
- README.md +5 -30
- accelerated-moblie-pages.php +2 -2
- changelog.txt +4 -0
- includes/features/performance/performance-functions.php +6 -0
- readme.txt +5 -30
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: 6.0
|
7 |
-
Stable tag: 1.0.77.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -197,6 +197,10 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
|
|
200 |
= 1.0.77.46 (28th June 2022) =
|
201 |
* Fixed: Reduced the execution of JS in youtube embeds #5287
|
202 |
* Fixed: Instagram embeds not working when added with iframe #5289
|
@@ -211,33 +215,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
211 |
* Fixed: Debug Warnings - Trying to access array offset on value of type null #5277
|
212 |
* Fixed: fatal error #5280
|
213 |
|
214 |
-
= 1.0.77.44 (2nd June 2022) =
|
215 |
-
* Improvements: Added Marfeel analytics compatibility in AMP #5266
|
216 |
-
* Improvements: Added WP Table Builder compatibility in AMP #5270
|
217 |
-
* Improvements: Updated the email id in feedback form #5273
|
218 |
-
* Fixed: Instagram reels not working in AMP #5269
|
219 |
-
* Fixed: Preload Funtionality not working when Image is added #5260
|
220 |
-
* Fixed: AMP dashicons CSS overwrites the WP default dashicons #5265
|
221 |
-
* Fixed: Tel protocols not working in the AMP #5268
|
222 |
-
* Fixed: CTA links saving without '=' character #5267
|
223 |
-
|
224 |
-
= 1.0.77.43 (10th May 2022) =
|
225 |
-
* Updated: TPD feature updated #5257
|
226 |
-
* Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
|
227 |
-
|
228 |
-
= 1.0.77.42 (16th April 2022) =
|
229 |
-
* Improvements: Added REHub Comparison charts, tables Compatibility #5250
|
230 |
-
* Fixed: Debug Warnings - Undefined index: amp-license #5251
|
231 |
-
|
232 |
-
= 1.0.77.41 (12th April 2022) =
|
233 |
-
* Improvements: Added Compatibility with GenerateBlocks plugin #5248
|
234 |
-
* Improvements: Added Web Safe Fonts in Google Fonts List #5242
|
235 |
-
* Improvements: AMP Option panel improvements #5239
|
236 |
-
* Fixed: White space in footer element between the posts of infinite scroll #5238
|
237 |
-
* Fixed: Invalid JSON error in console when using Plausible analytics #5142
|
238 |
-
|
239 |
-
= 1.0.77.40 (6th April 2022) =
|
240 |
-
* Fixed: The Publisher Desk CDN URL added instead of Heroku link #5237
|
241 |
-
* Fixed: AMP Option panel improvements #5240
|
242 |
-
|
243 |
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: 6.0
|
7 |
+
Stable tag: 1.0.77.47
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
197 |
|
198 |
== Changelog ==
|
199 |
|
200 |
+
= 1.0.77.47 (5th July 2022) =
|
201 |
+
* Fixed: AMP validation error when youtube video is embeded with query parameters #5292
|
202 |
+
* Fixed: Instagram embeds not working when added with blockquote tags #5289
|
203 |
+
|
204 |
= 1.0.77.46 (28th June 2022) =
|
205 |
* Fixed: Reduced the execution of JS in youtube embeds #5287
|
206 |
* Fixed: Instagram embeds not working when added with iframe #5289
|
215 |
* Fixed: Debug Warnings - Trying to access array offset on value of type null #5277
|
216 |
* Fixed: fatal error #5280
|
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.
|
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.
|
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.47
|
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.47');
|
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,9 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 1.0.77.46 (28th June 2022) =
|
4 |
* Fixed: Reduced the execution of JS in youtube embeds #5287
|
5 |
* Fixed: Instagram embeds not working when added with iframe #5289
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.77.47 (5th July 2022) =
|
4 |
+
* Fixed: AMP validation error when youtube video is embeded with query parameters #5292
|
5 |
+
* Fixed: Instagram embeds not working when added with blockquote tags #5289
|
6 |
+
|
7 |
= 1.0.77.46 (28th June 2022) =
|
8 |
* Fixed: Reduced the execution of JS in youtube embeds #5287
|
9 |
* Fixed: Instagram embeds not working when added with iframe #5289
|
includes/features/performance/performance-functions.php
CHANGED
@@ -103,12 +103,18 @@ function ampforwp_minify_html_output($content_buffer){
|
|
103 |
$content_buffer = preg_replace('/<div\sclass="wp-faq-schema-items">(.*?)<\/div>/s', '<amp-accordion expand-single-section>$1</amp-accordion>', $content_buffer);
|
104 |
}
|
105 |
if(preg_match('/<amp-iframe(.*?)src="(.*?)embed\/(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', $content_buffer)){
|
|
|
|
|
106 |
$content_buffer = preg_replace('/<amp-iframe(.*?)src="(.*?)embed\/(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', '<amp-youtube data-videoid="$3" layout="responsive" width="$5" height="$7"></amp-youtube>', $content_buffer);
|
107 |
}
|
108 |
if(preg_match('/<amp-iframe\sclass="instagram-media(.*?)"(.*?)src="https:\/\/instagram.com\/p\/(.*?)\/(.*?)"(.*?)><\/amp-iframe>/', $content_buffer)){
|
109 |
$content_buffer = preg_replace('/<amp-iframe\sclass="instagram-media(.*?)"(.*?)src="https:\/\/instagram.com\/p\/(.*?)\/(.*?)"(.*?)><\/amp-iframe>/', '<amp-instagram data-shortcode="$3" data-captioned width="400" height="400"layout="responsive"></amp-instagram>', $content_buffer);
|
110 |
}
|
111 |
|
|
|
|
|
|
|
|
|
112 |
global $redux_builder_amp;
|
113 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
114 |
return $content_buffer;
|
103 |
$content_buffer = preg_replace('/<div\sclass="wp-faq-schema-items">(.*?)<\/div>/s', '<amp-accordion expand-single-section>$1</amp-accordion>', $content_buffer);
|
104 |
}
|
105 |
if(preg_match('/<amp-iframe(.*?)src="(.*?)embed\/(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', $content_buffer)){
|
106 |
+
// Youtube Embed with Query Parameters
|
107 |
+
$content_buffer = preg_replace('/<amp-iframe(.*?)src="(.*?)youtube.com\/embed\/(.*?)\?(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', '<amp-youtube data-videoid="$3" layout="responsive" width="$6" height="$8"></amp-youtube>', $content_buffer);
|
108 |
$content_buffer = preg_replace('/<amp-iframe(.*?)src="(.*?)embed\/(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', '<amp-youtube data-videoid="$3" layout="responsive" width="$5" height="$7"></amp-youtube>', $content_buffer);
|
109 |
}
|
110 |
if(preg_match('/<amp-iframe\sclass="instagram-media(.*?)"(.*?)src="https:\/\/instagram.com\/p\/(.*?)\/(.*?)"(.*?)><\/amp-iframe>/', $content_buffer)){
|
111 |
$content_buffer = preg_replace('/<amp-iframe\sclass="instagram-media(.*?)"(.*?)src="https:\/\/instagram.com\/p\/(.*?)\/(.*?)"(.*?)><\/amp-iframe>/', '<amp-instagram data-shortcode="$3" data-captioned width="400" height="400"layout="responsive"></amp-instagram>', $content_buffer);
|
112 |
}
|
113 |
|
114 |
+
if(preg_match('/<blockquote\sclass="instagram-media\s(.*?)"(.*?)data-instgrm-permalink="(.*?)p\/(.*?)"(.*?)<\/blockquote>/', $content_buffer)){
|
115 |
+
$content_buffer = preg_replace('/<blockquote\sclass="instagram-media\s(.*?)"(.*?)data-instgrm-permalink="(.*?)p\/(.*?)"(.*?)<\/blockquote>/', '<amp-instagram data-shortcode="$4" width="400" height="400"layout="responsive"></amp-instagram>', $content_buffer);
|
116 |
+
}
|
117 |
+
|
118 |
global $redux_builder_amp;
|
119 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
120 |
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: 6.0
|
7 |
-
Stable tag: 1.0.77.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,10 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
197 |
= 1.0.77.46 (28th June 2022) =
|
198 |
* Fixed: Reduced the execution of JS in youtube embeds #5287
|
199 |
* Fixed: Instagram embeds not working when added with iframe #5289
|
@@ -208,33 +212,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
208 |
* Fixed: Debug Warnings - Trying to access array offset on value of type null #5277
|
209 |
* Fixed: fatal error #5280
|
210 |
|
211 |
-
= 1.0.77.44 (2nd June 2022) =
|
212 |
-
* Improvements: Added Marfeel analytics compatibility in AMP #5266
|
213 |
-
* Improvements: Added WP Table Builder compatibility in AMP #5270
|
214 |
-
* Improvements: Updated the email id in feedback form #5273
|
215 |
-
* Fixed: Instagram reels not working in AMP #5269
|
216 |
-
* Fixed: Preload Funtionality not working when Image is added #5260
|
217 |
-
* Fixed: AMP dashicons CSS overwrites the WP default dashicons #5265
|
218 |
-
* Fixed: Tel protocols not working in the AMP #5268
|
219 |
-
* Fixed: CTA links saving without '=' character #5267
|
220 |
-
|
221 |
-
= 1.0.77.43 (10th May 2022) =
|
222 |
-
* Updated: TPD feature updated #5257
|
223 |
-
* Fixed: Resolved the issue of Image Gallery Carousel in AMP does not change the gallery view in posts/pages #5259
|
224 |
-
|
225 |
-
= 1.0.77.42 (16th April 2022) =
|
226 |
-
* Improvements: Added REHub Comparison charts, tables Compatibility #5250
|
227 |
-
* Fixed: Debug Warnings - Undefined index: amp-license #5251
|
228 |
-
|
229 |
-
= 1.0.77.41 (12th April 2022) =
|
230 |
-
* Improvements: Added Compatibility with GenerateBlocks plugin #5248
|
231 |
-
* Improvements: Added Web Safe Fonts in Google Fonts List #5242
|
232 |
-
* Improvements: AMP Option panel improvements #5239
|
233 |
-
* Fixed: White space in footer element between the posts of infinite scroll #5238
|
234 |
-
* Fixed: Invalid JSON error in console when using Plausible analytics #5142
|
235 |
-
|
236 |
-
= 1.0.77.40 (6th April 2022) =
|
237 |
-
* Fixed: The Publisher Desk CDN URL added instead of Heroku link #5237
|
238 |
-
* Fixed: AMP Option panel improvements #5240
|
239 |
-
|
240 |
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: 6.0
|
7 |
+
Stable tag: 1.0.77.47
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 1.0.77.47 (5th July 2022) =
|
198 |
+
* Fixed: AMP validation error when youtube video is embeded with query parameters #5292
|
199 |
+
* Fixed: Instagram embeds not working when added with blockquote tags #5289
|
200 |
+
|
201 |
= 1.0.77.46 (28th June 2022) =
|
202 |
* Fixed: Reduced the execution of JS in youtube embeds #5287
|
203 |
* Fixed: Instagram embeds not working when added with iframe #5289
|
212 |
* Fixed: Debug Warnings - Trying to access array offset on value of type null #5277
|
213 |
* Fixed: fatal error #5280
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|