AMP for WP – Accelerated Mobile Pages - Version 1.0.77.19

Version Description

(13th August 2021) = * Fixed: Disable AMP on desktop not working with ?amp #5113 * Fixed: Can't use function return value error when activating plugin #5115 * Fixed: Button icon showing white When installing schema internally #5111

Download this release

Release Info

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

Code changes from version 1.0.77.18 to 1.0.77.19

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.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -197,6 +197,11 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
197
 
198
  == Changelog ==
199
 
 
 
 
 
 
200
  = 1.0.77.18 (5th August 2021) =
201
  * Improvements: Added License Key information in AMP panel #5110
202
 
@@ -204,10 +209,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
204
  * Improvements: Added dotmetrics analytics support in amp #5107
205
  * Improvements: Added support to preserve query string with ?amp #5103
206
 
207
- = 1.0.77.16 (29th July 2021) =
208
- * Improvements: Added Filter to remove last-modified header in amp #5101
209
- * Fixed: Webp images are not converting with Webp Express plugin #5108
210
- * Fixed: Validation error - The tag 'lite-youtube' is disallowed #5102
211
- * Fixed: Yoast custom breadcrumbs title not working after update #5100
212
-
213
  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.8
7
+ Stable tag: 1.0.77.19
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.19 (13th August 2021) =
201
+ * Fixed: Disable AMP on desktop not working with ?amp #5113
202
+ * Fixed: Can't use function return value error when activating plugin #5115
203
+ * Fixed: Button icon showing white When installing schema internally #5111
204
+
205
  = 1.0.77.18 (5th August 2021) =
206
  * Improvements: Added License Key information in AMP panel #5110
207
 
209
  * Improvements: Added dotmetrics analytics support in amp #5107
210
  * Improvements: Added support to preserve query string with ?amp #5103
211
 
 
 
 
 
 
 
212
  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.77.18
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.18');
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.19
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.19');
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,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 1.0.77.18 (5th August 2021) =
4
  * Improvements: Added License Key information in AMP panel #5110
5
 
1
  == Changelog ==
2
 
3
+ = 1.0.77.19 (13th August 2021) =
4
+ * Fixed: Disable AMP on desktop not working with ?amp #5113
5
+ * Fixed: Can't use function return value error when activating plugin #5115
6
+ * Fixed: Button icon showing white When installing schema internally #5111
7
+
8
  = 1.0.77.18 (5th August 2021) =
9
  * Improvements: Added License Key information in AMP panel #5110
10
 
components/components-core.php CHANGED
@@ -527,7 +527,9 @@ function amp_content($post_id= ''){
527
  $ampforwp_the_content = $thisTemplate->get( 'ampforwp_amp_content' );
528
  }
529
  // Muffin Builder Compatibility #1455 #1893 #4983
530
- if ( class_exists('Mfn_Builder_Front') && ! $amp_custom_content_enable && !empty(get_post_field( 'mfn-page-items-seo', ampforwp_get_the_ID())) ) {
 
 
531
  $mfn_builder = $content = '';
532
  $mfn_builder = new Mfn_Builder_Front(ampforwp_get_the_ID());
533
  if (! empty($mfn_builder) ) {
@@ -555,7 +557,8 @@ function amp_content($post_id= ''){
555
  }
556
  else{
557
  $ampforwp_the_content = $sanitizer_obj->get_amp_content();
558
- }
 
559
  }
560
  if(function_exists('ampforwp_sassy_share_icons')){
561
  $ampforwp_the_content = ampforwp_sassy_share_icons($ampforwp_the_content);
527
  $ampforwp_the_content = $thisTemplate->get( 'ampforwp_amp_content' );
528
  }
529
  // Muffin Builder Compatibility #1455 #1893 #4983
530
+ if ( class_exists('Mfn_Builder_Front') && ! $amp_custom_content_enable ) {
531
+ $mfn_page = get_post_field( 'mfn-page-items-seo', ampforwp_get_the_ID());
532
+ if (!empty($mfn_page)) {
533
  $mfn_builder = $content = '';
534
  $mfn_builder = new Mfn_Builder_Front(ampforwp_get_the_ID());
535
  if (! empty($mfn_builder) ) {
557
  }
558
  else{
559
  $ampforwp_the_content = $sanitizer_obj->get_amp_content();
560
+ }
561
+ }
562
  }
563
  if(function_exists('ampforwp_sassy_share_icons')){
564
  $ampforwp_the_content = ampforwp_sassy_share_icons($ampforwp_the_content);
includes/options/redux-core/assets/css/redux-admin.css CHANGED
@@ -1510,8 +1510,8 @@ img.ampforwp-quads-logo{
1510
  border-radius: 30px;
1511
  }
1512
  .button.installed:before, .button.installing:before, .button.updated-message:before, .button.updating-message:before {
1513
- margin: 0px 7px 2px -2px;
1514
- color: #fff;
1515
  }
1516
  div#section-amp-ads_1, table#section-table-amp-ads_1 {
1517
  max-width: 100% !important;
1510
  border-radius: 30px;
1511
  }
1512
  .button.installed:before, .button.installing:before, .button.updated-message:before, .button.updating-message:before {
1513
+ margin: 3px 7px 2px -2px;
1514
+ color: #f56e28;
1515
  }
1516
  div#section-amp-ads_1, table#section-table-amp-ads_1 {
1517
  max-width: 100% !important;
includes/redirect.php CHANGED
@@ -68,7 +68,11 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
68
  $isMobile = $mobile_detect->isMobile();
69
  if (!$isMobile ) {
70
  $current_url = home_url(add_query_arg(array($_GET), $wp->request));
71
- $current_url = explode('/', $current_url);
 
 
 
 
72
  $check = AMPFORWP_AMP_QUERY_VAR;
73
  if (in_array( $check , $current_url ) ) {
74
  $current_url = array_flip($current_url);
68
  $isMobile = $mobile_detect->isMobile();
69
  if (!$isMobile ) {
70
  $current_url = home_url(add_query_arg(array($_GET), $wp->request));
71
+ if (ampforwp_get_setting('amp-core-end-point')) {
72
+ $current_url = explode('?', $current_url);
73
+ }else{
74
+ $current_url = explode('/', $current_url);
75
+ }
76
  $check = AMPFORWP_AMP_QUERY_VAR;
77
  if (in_array( $check , $current_url ) ) {
78
  $current_url = array_flip($current_url);
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.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,11 @@ You can contact us from [here](https://ampforwp.com/contact/)
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
197
  = 1.0.77.18 (5th August 2021) =
198
  * Improvements: Added License Key information in AMP panel #5110
199
 
@@ -201,10 +206,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
201
  * Improvements: Added dotmetrics analytics support in amp #5107
202
  * Improvements: Added support to preserve query string with ?amp #5103
203
 
204
- = 1.0.77.16 (29th July 2021) =
205
- * Improvements: Added Filter to remove last-modified header in amp #5101
206
- * Fixed: Webp images are not converting with Webp Express plugin #5108
207
- * Fixed: Validation error - The tag 'lite-youtube' is disallowed #5102
208
- * Fixed: Yoast custom breadcrumbs title not working after update #5100
209
-
210
  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.8
7
+ Stable tag: 1.0.77.19
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.19 (13th August 2021) =
198
+ * Fixed: Disable AMP on desktop not working with ?amp #5113
199
+ * Fixed: Can't use function return value error when activating plugin #5115
200
+ * Fixed: Button icon showing white When installing schema internally #5111
201
+
202
  = 1.0.77.18 (5th August 2021) =
203
  * Improvements: Added License Key information in AMP panel #5110
204
 
206
  * Improvements: Added dotmetrics analytics support in amp #5107
207
  * Improvements: Added support to preserve query string with ?amp #5103
208
 
 
 
 
 
 
 
209
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)