AMP for WP – Accelerated Mobile Pages - Version 1.0.65.2

Version Description

(17th October 2020) = * Fixed: Menu not appearing in AMP #4657 * Fixed: Wrong amphtml on homepage when ?amp is selected #4780

Download this release

Release Info

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

Code changes from version 1.0.65.1 to 1.0.65.2

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.5
7
- Stable tag: 1.0.65.1
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.65.1 (16th October 2020) =
197
  * Fixed: Jquery issue fixed due to Easy select option for category module #4672
198
 
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.5
7
+ Stable tag: 1.0.65.2
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.65.2 (17th October 2020) =
197
+ * Fixed: Menu not appearing in AMP #4657
198
+ * Fixed: Wrong amphtml on homepage when ?amp is selected #4780
199
+
200
  = 1.0.65.1 (16th October 2020) =
201
  * Fixed: Jquery issue fixed due to Easy select option for category module #4672
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.65.1
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
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.65.2
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 1.0.65.1 (16th October 2020) =
4
  * Fixed: Jquery issue fixed due to Easy select option for category module #4672
5
 
1
  == Changelog ==
2
 
3
+ = 1.0.65.2 (17th October 2020) =
4
+ * Fixed: Menu not appearing in AMP #4657
5
+ * Fixed: Wrong amphtml on homepage when ?amp is selected #4780
6
+
7
  = 1.0.65.1 (16th October 2020) =
8
  * Fixed: Jquery issue fixed due to Easy select option for category module #4672
9
 
components/components-core.php CHANGED
@@ -158,17 +158,13 @@ function amp_menu($echo=true, $menu_args=array(), $type='header'){
158
  global $loadComponent;
159
  if(isset($loadComponent['AMP-menu']) && $loadComponent['AMP-menu']==true){
160
  $amp_menu = "";
161
- if ( 'header' == $type ){
162
- $header_menu = get_transient('ampforwp_header_menu');
163
- if(false != $header_menu ){
164
- $amp_menu = $header_menu;
165
- }
166
  }
167
- elseif ('footer' == $type) {
168
- $footer_menu = get_transient('ampforwp_footer_menu');
169
- if(false != $footer_menu){
170
- $amp_menu = $footer_menu;
171
- }
172
  }
173
  else{
174
  $amp_menu = amp_menu_html($echo, $menu_args, $type);
158
  global $loadComponent;
159
  if(isset($loadComponent['AMP-menu']) && $loadComponent['AMP-menu']==true){
160
  $amp_menu = "";
161
+ $header_menu = get_transient('ampforwp_header_menu');
162
+ $footer_menu = get_transient('ampforwp_footer_menu');
163
+ if ( 'header' == $type && false != $header_menu ){
164
+ $amp_menu = $header_menu;
 
165
  }
166
+ elseif ('footer' == $type && false != $footer_menu) {
167
+ $amp_menu = $footer_menu;
 
 
 
168
  }
169
  else{
170
  $amp_menu = amp_menu_html($echo, $menu_args, $type);
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.5
7
- Stable tag: 1.0.65.1
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.65.1 (16th October 2020) =
194
  * Fixed: Jquery issue fixed due to Easy select option for category module #4672
195
 
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.5
7
+ Stable tag: 1.0.65.2
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.65.2 (17th October 2020) =
194
+ * Fixed: Menu not appearing in AMP #4657
195
+ * Fixed: Wrong amphtml on homepage when ?amp is selected #4780
196
+
197
  = 1.0.65.1 (16th October 2020) =
198
  * Fixed: Jquery issue fixed due to Easy select option for category module #4672
199
 
templates/features.php CHANGED
@@ -419,7 +419,9 @@ define('AMPFORWP_COMMENTS_PER_PAGE', ampforwp_define_comments_number() );
419
  }
420
  if(ampforwp_get_setting('amp-core-end-point') && ampforwp_get_setting('ampforwp-amp-takeover') && is_singular()){
421
  $amp_url = get_the_permalink();
422
- }
 
 
423
  return esc_url_raw($amp_url);
424
  }
425
  }
419
  }
420
  if(ampforwp_get_setting('amp-core-end-point') && ampforwp_get_setting('ampforwp-amp-takeover') && is_singular()){
421
  $amp_url = get_the_permalink();
422
+ }else if(ampforwp_get_setting('amp-core-end-point') && (ampforwp_is_home() || ampforwp_is_front_page())){
423
+ $amp_url = ampforwp_url_controller($amp_url);
424
+ }
425
  return esc_url_raw($amp_url);
426
  }
427
  }