AMP for WP – Accelerated Mobile Pages - Version 1.0.77.22

Version Description

(6th September 2021) = * Fixed: Validation error with rankmath's "open external links in new tab" option #5129

Download this release

Release Info

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

Code changes from version 1.0.77.21 to 1.0.77.22

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.8
7
- Stable tag: 1.0.77.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -197,6 +197,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
197
 
198
  == Changelog ==
199
 
 
 
 
200
  = 1.0.77.21 (6th September 2021) =
201
  * Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
202
  * Fixed: Missing rel noopener attribute in links #5125
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.8
7
+ Stable tag: 1.0.77.22
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.22 (6th September 2021) =
201
+ * Fixed: Validation error with rankmath's "open external links in new tab" option #5129
202
+
203
  = 1.0.77.21 (6th September 2021) =
204
  * Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
205
  * Fixed: Missing rel noopener attribute in links #5125
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.21
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.21');
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.22
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.22');
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.21 (6th September 2021) =
4
  * Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
5
  * Fixed: Missing rel noopener attribute in links #5125
1
  == Changelog ==
2
 
3
+ = 1.0.77.22 (6th September 2021) =
4
+ * Fixed: Validation error with rankmath's "open external links in new tab" option #5129
5
+
6
  = 1.0.77.21 (6th September 2021) =
7
  * Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
8
  * Fixed: Missing rel noopener attribute in links #5125
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.8
7
- Stable tag: 1.0.77.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
194
 
195
  == Changelog ==
196
 
 
 
 
197
  = 1.0.77.21 (6th September 2021) =
198
  * Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
199
  * Fixed: Missing rel noopener attribute in links #5125
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.8
7
+ Stable tag: 1.0.77.22
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.22 (6th September 2021) =
198
+ * Fixed: Validation error with rankmath's "open external links in new tab" option #5129
199
+
200
  = 1.0.77.21 (6th September 2021) =
201
  * Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
202
  * Fixed: Missing rel noopener attribute in links #5125
templates/features.php CHANGED
@@ -8904,26 +8904,7 @@ function ampforwp_themify_compatibility($content){
8904
  }
8905
  return $content;
8906
  }
8907
- if(class_exists('RankMath')){
8908
- add_filter('ampforwp_modify_the_content','ampforwp_rank_math_external_link_newtab');
8909
- }
8910
- function ampforwp_rank_math_external_link_newtab($content){
8911
- $rank_math_external_link = RankMath\Helper::get_settings( 'general.new_window_external_links' );
8912
- if($rank_math_external_link){
8913
- preg_match_all('/<a(.*?)href="(.*?)"/s', $content, $matches);
8914
- for($i=0;$i<count($matches[2]);$i++){
8915
- $url = $matches[2][$i];
8916
- if(ampforwp_isexternal($url)){
8917
- $url = esc_url($url);
8918
- $url = str_replace("/", "\/", $url);
8919
- if(preg_match('/<a(.*?)href="'.$url.'"(.*?)<\/a>/' , $content)){
8920
- $content = preg_replace('/<a(.*?)href="'.$url.'"(.*?)<\/a>/', '<a$1 target="_blank" href="'.stripcslashes($url).'"$2</a>', $content);
8921
- }
8922
- }
8923
- }
8924
- }
8925
- return $content;
8926
- }
8927
  add_action( 'wp_ajax_ampforwp_referesh_related_post', 'ampforwp_referesh_related_post' );
8928
  function ampforwp_referesh_related_post(){
8929
  if(!wp_verify_nonce($_POST['verify_nonce'],'ampforwp_refresh_related_poost') ){
8904
  }
8905
  return $content;
8906
  }
8907
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8908
  add_action( 'wp_ajax_ampforwp_referesh_related_post', 'ampforwp_referesh_related_post' );
8909
  function ampforwp_referesh_related_post(){
8910
  if(!wp_verify_nonce($_POST['verify_nonce'],'ampforwp_refresh_related_poost') ){