AMP for WP – Accelerated Mobile Pages - Version 1.0.77.49

Version Description

(22nd August 2022) = * Fixed: There is a compatibility issue with the latest version of the All in One SEO Plugin. #5306

Download this release

Release Info

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

Code changes from version 1.0.77.48 to 1.0.77.49

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.48
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.48 (11th August 2022) =
201
  * Improvements: Added Super Related Posts plugin compatibility #5298
202
  * Improvements: Added Inline Related Post plugin compatibility #5296
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.49
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.49 (22nd August 2022) =
201
+ * Fixed: There is a compatibility issue with the latest version of the All in One SEO Plugin. #5306
202
+
203
  = 1.0.77.48 (11th August 2022) =
204
  * Improvements: Added Super Related Posts plugin compatibility #5298
205
  * Improvements: Added Inline Related Post plugin compatibility #5296
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.48
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.48');
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.49
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.49');
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.48 (11th August 2022) =
4
  * Improvements: Added Super Related Posts plugin compatibility #5298
5
  * Improvements: Added Inline Related Post plugin compatibility #5296
1
  == Changelog ==
2
 
3
+ = 1.0.77.49 (22nd August 2022) =
4
+ * Fixed: There is a compatibility issue with the latest version of the All in One SEO Plugin. #5306
5
+
6
  = 1.0.77.48 (11th August 2022) =
7
  * Improvements: Added Super Related Posts plugin compatibility #5298
8
  * Improvements: Added Inline Related Post plugin compatibility #5296
includes/vendor/amp/includes/amp-post-template-actions.php CHANGED
@@ -26,9 +26,9 @@ if( (class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration')) ){
26
  add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_title' );
27
  }
28
  function amp_post_template_add_canonical( $amp_template ) {
29
- if (function_exists('aioseo_pro_just_activated')) {
30
- return;
31
- }
32
  ?>
33
  <link rel="canonical" href="<?php echo esc_url( apply_filters('ampforwp_modify_rel_url',$amp_template->get( 'canonical_url' ) ) ); ?>" />
34
  <?php
26
  add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_title' );
27
  }
28
  function amp_post_template_add_canonical( $amp_template ) {
29
+ if (function_exists('aioseo_pro_just_activated') && version_compare(AIOSEO_VERSION,'4.2.4', '<')) {
30
+ return;
31
+ }
32
  ?>
33
  <link rel="canonical" href="<?php echo esc_url( apply_filters('ampforwp_modify_rel_url',$amp_template->get( 'canonical_url' ) ) ); ?>" />
34
  <?php
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.48
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.48 (11th August 2022) =
198
  * Improvements: Added Super Related Posts plugin compatibility #5298
199
  * Improvements: Added Inline Related Post plugin compatibility #5296
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.49
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.49 (22nd August 2022) =
198
+ * Fixed: There is a compatibility issue with the latest version of the All in One SEO Plugin. #5306
199
+
200
  = 1.0.77.48 (11th August 2022) =
201
  * Improvements: Added Super Related Posts plugin compatibility #5298
202
  * Improvements: Added Inline Related Post plugin compatibility #5296
templates/features.php CHANGED
@@ -4544,7 +4544,7 @@ function ampforwp_home_archive_canonical_setter(){
4544
  }
4545
 
4546
  function ampforwp_rel_canonical_home_archive(){
4547
- if (function_exists('aioseo_pro_just_activated')) {
4548
  return;
4549
  }
4550
  global $redux_builder_amp;
4544
  }
4545
 
4546
  function ampforwp_rel_canonical_home_archive(){
4547
+ if (function_exists('aioseo_pro_just_activated') && version_compare(AIOSEO_VERSION,'4.2.4', '<')) {
4548
  return;
4549
  }
4550
  global $redux_builder_amp;