AMP for WP – Accelerated Mobile Pages - Version 1.0.57

Version Description

(3rd July 2020) = * Fixed: Issue with external link with Rank Math #4584 * Fixed: Incorrect yoast title with TagDiv's themes #4595

Download this release

Release Info

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

Code changes from version 1.0.56 to 1.0.57

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.56
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.56 (1st July 2020) =
197
  * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
198
 
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.57
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.57 (3rd July 2020) =
197
+ * Fixed: Issue with external link with Rank Math #4584
198
+ * Fixed: Incorrect yoast title with TagDiv's themes #4595
199
+
200
  = 1.0.56 (1st July 2020) =
201
  * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
202
 
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.56
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.56');
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.57
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.57');
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.56 (1st July 2020) =
4
  * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
5
 
1
  == Changelog ==
2
 
3
+ = 1.0.57 (3rd July 2020) =
4
+ * Fixed: Issue with external link with Rank Math #4584
5
+ * Fixed: Incorrect yoast title with TagDiv's themes #4595
6
+
7
  = 1.0.56 (1st July 2020) =
8
  * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
9
 
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.56
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.56 (1st July 2020) =
194
  * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
195
 
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.57
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.57 (3rd July 2020) =
194
+ * Fixed: Issue with external link with Rank Math #4584
195
+ * Fixed: Incorrect yoast title with TagDiv's themes #4595
196
+
197
  = 1.0.56 (1st July 2020) =
198
  * Fixed: When gdpr option is enabled the site is becoming unclickable in browser Safari on IOS and MacOS #4542
199
 
templates/features.php CHANGED
@@ -8539,9 +8539,10 @@ function ampforwp_rank_math_external_link_newtab($content){
8539
  if($rank_math_external_link){
8540
  $comp_dom = new DOMDocument();
8541
  if(function_exists('mb_convert_encoding')){
8542
- @$comp_dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));
8543
  }else{
8544
- @$comp_dom->loadHTML($content);
 
8545
  }
8546
  $xpath = new DOMXPath( $comp_dom );
8547
  $count = 0;
8539
  if($rank_math_external_link){
8540
  $comp_dom = new DOMDocument();
8541
  if(function_exists('mb_convert_encoding')){
8542
+ @$comp_dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'),LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
8543
  }else{
8544
+ $content = htmlspecialchars_decode(utf8_decode(htmlentities($content, ENT_COMPAT, 'utf-8', false)));
8545
+ @$comp_dom->loadHTML($content,LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
8546
  }
8547
  $xpath = new DOMXPath( $comp_dom );
8548
  $count = 0;
templates/template-mode/template-mode.php CHANGED
@@ -677,6 +677,9 @@ Class AMPforWP_theme_mode{
677
  }//Class Closed
678
  add_action('after_setup_theme', 'ampforwp_template_mode_is_activate', 999);
679
  function ampforwp_template_mode_is_activate(){
 
 
 
680
  if(get_theme_support('amp-template-mode') && !is_customize_preview()){
681
  $ampforwp_theme_mode = new AMPforWP_theme_mode();
682
  $ampforwp_theme_mode->init();
677
  }//Class Closed
678
  add_action('after_setup_theme', 'ampforwp_template_mode_is_activate', 999);
679
  function ampforwp_template_mode_is_activate(){
680
+ if(function_exists('td_wp_title')){
681
+ add_theme_support( 'title-tag' );
682
+ }
683
  if(get_theme_support('amp-template-mode') && !is_customize_preview()){
684
  $ampforwp_theme_mode = new AMPforWP_theme_mode();
685
  $ampforwp_theme_mode->init();