AMP for WP – Accelerated Mobile Pages - Version 1.0.58.1

Version Description

(9th July 2020) = * Fixed: Validation error of target attribute appearing in span tag #4620 * Fixed: Menu is hidden behind the content in iOS devices #4601

Download this release

Release Info

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

Code changes from version 1.0.58 to 1.0.58.1

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.4.2
7
- Stable tag: 1.0.58
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,10 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
 
196
  = 1.0.58 (7th July 2020) =
197
  * Improvement: Added before and after comment hooks #4537
198
  * Fixed: WPRocket CDN is not working properly with the amp pages #4342
@@ -211,41 +215,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
211
  * Fixed: Issue with external link with Rank Math #4584
212
  * Fixed: Incorrect yoast title with TagDiv's themes #4595
213
 
214
- = 1.0.56 (1st July 2020) =
215
- * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
216
-
217
- = 1.0.55 (30th June 2020) =
218
- * Improvement: Added option to change the Google theme color #4514
219
- * Improvement: Added TravelTour Theme compatibility #4540
220
- * Fixed: Whitelisted <details> and <summary> tags in AMP #4577
221
- * Fixed: amp-embed doesn't include the amp-ad script #4580
222
- * Fixed: Lightbox for images not working in specific scenario #4570
223
- * Fixed: Fatal error on one of the urls. #4438
224
- * Fixed: First priority added to load amp markup when marfeelpress and amp is active #4560
225
- * Fixed: Retina image breaking the layout for Design 2 in homepage #4558
226
- * Fixed: The duplicate text showing after the anchor link #4584
227
- * Fixed: Debug warning #4508
228
-
229
- = 1.0.54.1 (26th June 2020) =
230
- * Fixed: The duplicate text showing after the anchor link #4584
231
-
232
- = 1.0.54 (25th June 2020) =
233
- * Fixed: Odnoklassniki sharing not working properly #4525
234
- * Fixed: Post title is not appearing when a post is shared through Whatsapp #4513
235
- * Fixed: Even after activating amp page builder compatibility we are getting this message this feature requires Page Builder For AMP extension. #4530
236
- * Fixed: RedGIFs embeds break site #4422
237
- * Fixed: Show notice when user is enabling option "sort related item randomly". #4535
238
- * Fixed: The mandatory tag 'link rel=canonical' is missing or incorrect due to Yoast SEO premium plugin #4569
239
- * Fixed: AMP homepage has a wrong canonical link. #4564
240
- * Fixed: Yoast not working in rare scenario #4562
241
- * Fixed: Meta title not pulled from YOAST in version 1.0.53.2 #4574
242
- * Fixed: yoast breadcrumb links not redirecting to amp pages. #4566
243
- * Fixed: Need to make comatibility with the wordpress embed block in guntenburg editor #4506
244
- * Fixed: Custom Javascript added with orbital theme and it is showing a validation error on the AMP Pages #4539
245
- * Fixed: robots.txt file is not generating when AMP takeover beta option is enabled. #4541
246
- * Fixed: Need to add compatibility of the "Brightcove Video Connect" plugin. #4517
247
- * Fixed: Debug Warning #4568
248
- * Fixed: Comments are not displaying on Homepage (only in swift theme) #4571
249
- * Fixed: The button CSS not appearing in the AMP added with the Gutenberg button module #4572
250
-
251
  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.4.2
7
+ Stable tag: 1.0.58.1
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.58.1 (9th July 2020) =
197
+ * Fixed: Validation error of target attribute appearing in span tag #4620
198
+ * Fixed: Menu is hidden behind the content in iOS devices #4601
199
+
200
  = 1.0.58 (7th July 2020) =
201
  * Improvement: Added before and after comment hooks #4537
202
  * Fixed: WPRocket CDN is not working properly with the amp pages #4342
215
  * Fixed: Issue with external link with Rank Math #4584
216
  * Fixed: Incorrect yoast title with TagDiv's themes #4595
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.58
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.58');
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.58.1
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.58.1');
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.58 (7th July 2020) =
4
  * Improvement: Added before and after comment hooks #4537
5
  * Fixed: WPRocket CDN is not working properly with the amp pages #4342
1
  == Changelog ==
2
 
3
+ = 1.0.58.1 (9th July 2020) =
4
+ * Fixed: Validation error of target attribute appearing in span tag #4620
5
+ * Fixed: Menu is hidden behind the content in iOS devices #4601
6
+
7
  = 1.0.58 (7th July 2020) =
8
  * Improvement: Added before and after comment hooks #4537
9
  * Fixed: WPRocket CDN is not working properly with the amp pages #4342
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.4.2
7
- Stable tag: 1.0.58
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,10 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
 
193
  = 1.0.58 (7th July 2020) =
194
  * Improvement: Added before and after comment hooks #4537
195
  * Fixed: WPRocket CDN is not working properly with the amp pages #4342
@@ -208,41 +212,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
208
  * Fixed: Issue with external link with Rank Math #4584
209
  * Fixed: Incorrect yoast title with TagDiv's themes #4595
210
 
211
- = 1.0.56 (1st July 2020) =
212
- * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
213
-
214
- = 1.0.55 (30th June 2020) =
215
- * Improvement: Added option to change the Google theme color #4514
216
- * Improvement: Added TravelTour Theme compatibility #4540
217
- * Fixed: Whitelisted <details> and <summary> tags in AMP #4577
218
- * Fixed: amp-embed doesn't include the amp-ad script #4580
219
- * Fixed: Lightbox for images not working in specific scenario #4570
220
- * Fixed: Fatal error on one of the urls. #4438
221
- * Fixed: First priority added to load amp markup when marfeelpress and amp is active #4560
222
- * Fixed: Retina image breaking the layout for Design 2 in homepage #4558
223
- * Fixed: The duplicate text showing after the anchor link #4584
224
- * Fixed: Debug warning #4508
225
-
226
- = 1.0.54.1 (26th June 2020) =
227
- * Fixed: The duplicate text showing after the anchor link #4584
228
-
229
- = 1.0.54 (25th June 2020) =
230
- * Fixed: Odnoklassniki sharing not working properly #4525
231
- * Fixed: Post title is not appearing when a post is shared through Whatsapp #4513
232
- * Fixed: Even after activating amp page builder compatibility we are getting this message this feature requires Page Builder For AMP extension. #4530
233
- * Fixed: RedGIFs embeds break site #4422
234
- * Fixed: Show notice when user is enabling option "sort related item randomly". #4535
235
- * Fixed: The mandatory tag 'link rel=canonical' is missing or incorrect due to Yoast SEO premium plugin #4569
236
- * Fixed: AMP homepage has a wrong canonical link. #4564
237
- * Fixed: Yoast not working in rare scenario #4562
238
- * Fixed: Meta title not pulled from YOAST in version 1.0.53.2 #4574
239
- * Fixed: yoast breadcrumb links not redirecting to amp pages. #4566
240
- * Fixed: Need to make comatibility with the wordpress embed block in guntenburg editor #4506
241
- * Fixed: Custom Javascript added with orbital theme and it is showing a validation error on the AMP Pages #4539
242
- * Fixed: robots.txt file is not generating when AMP takeover beta option is enabled. #4541
243
- * Fixed: Need to add compatibility of the "Brightcove Video Connect" plugin. #4517
244
- * Fixed: Debug Warning #4568
245
- * Fixed: Comments are not displaying on Homepage (only in swift theme) #4571
246
- * Fixed: The button CSS not appearing in the AMP added with the Gutenberg button module #4572
247
-
248
  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.4.2
7
+ Stable tag: 1.0.58.1
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.58.1 (9th July 2020) =
194
+ * Fixed: Validation error of target attribute appearing in span tag #4620
195
+ * Fixed: Menu is hidden behind the content in iOS devices #4601
196
+
197
  = 1.0.58 (7th July 2020) =
198
  * Improvement: Added before and after comment hooks #4537
199
  * Fixed: WPRocket CDN is not working properly with the amp pages #4342
212
  * Fixed: Issue with external link with Rank Math #4584
213
  * Fixed: Incorrect yoast title with TagDiv's themes #4595
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/swift/style.php CHANGED
@@ -2487,4 +2487,11 @@ if(ampforwp_get_setting('header-position-type') == '2'){?>
2487
  position: inherit;
2488
  }
2489
  }
2490
- <?php }
 
 
 
 
 
 
 
2487
  position: inherit;
2488
  }
2489
  }
2490
+ <?php }
2491
+ if(ampforwp_get_setting('amp-sticky-header') == '1'){?>
2492
+ @supports (-webkit-touch-callout: none) {
2493
+ .header .tg + .hamb-mnu, .header .tg:checked + .hamb-mnu {
2494
+ position: initial;
2495
+ }
2496
+ }
2497
+ <?php } ?>
templates/features.php CHANGED
@@ -8551,7 +8551,7 @@ function ampforwp_rank_math_external_link_newtab($content){
8551
  if(ampforwp_isexternal($url)){
8552
  $url = esc_url($url);
8553
  $url = str_replace("/", "\/", $url);
8554
- $content = preg_replace('/(<a(.*?)href="'.$url.'.*")/', '$1 target="_blank"', $content);
8555
  }
8556
  }
8557
  }
8551
  if(ampforwp_isexternal($url)){
8552
  $url = esc_url($url);
8553
  $url = str_replace("/", "\/", $url);
8554
+ $content = preg_replace('/<a(.*?)href="'.$url.'"(.*?)<\/a>/', '<a$1 target="_blank" href="'.stripcslashes($url).'"$2</a>', $content);
8555
  }
8556
  }
8557
  }