Version Description
(28th October 2020) = * Fixed: Content not visible after 1.0.66 update #4744
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.66.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.66.1 to 1.0.66.2
- README.md +4 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +3 -0
- includes/thirdparty-compatibility.php +8 -0
- readme.txt +4 -1
- templates/features.php +1 -1
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.66.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
196 |
= 1.0.66.1 (26th October 2020) =
|
197 |
* Fixed: Validation error due to amp-web-push AMP component script #4796
|
198 |
* Fixed: Validation error due to amp-fx-flying-carpet AMP component script #4794
|
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.66.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.66.2 (28th October 2020) =
|
197 |
+
* Fixed: Content not visible after 1.0.66 update #4744
|
198 |
+
|
199 |
= 1.0.66.1 (26th October 2020) =
|
200 |
* Fixed: Validation error due to amp-web-push AMP component script #4796
|
201 |
* Fixed: Validation error due to amp-fx-flying-carpet AMP component script #4794
|
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.66.
|
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.66.
|
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.66.2
|
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.66.2');
|
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.66.1 (26th October 2020) =
|
4 |
* Fixed: Validation error due to amp-web-push AMP component script #4796
|
5 |
* Fixed: Validation error due to amp-fx-flying-carpet AMP component script #4794
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.66.2 (28th October 2020) =
|
4 |
+
* Fixed: Content not visible after 1.0.66 update #4744
|
5 |
+
|
6 |
= 1.0.66.1 (26th October 2020) =
|
7 |
* Fixed: Validation error due to amp-web-push AMP component script #4796
|
8 |
* Fixed: Validation error due to amp-fx-flying-carpet AMP component script #4794
|
includes/thirdparty-compatibility.php
CHANGED
@@ -1194,6 +1194,14 @@ function ampforwp_execute_amp_prior_marfeel(){
|
|
1194 |
}
|
1195 |
}
|
1196 |
function ampforwp_is_amp_inURL($url){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1197 |
$urlArray = explode("/", $url);
|
1198 |
if( !in_array( AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1199 |
return false;
|
1194 |
}
|
1195 |
}
|
1196 |
function ampforwp_is_amp_inURL($url){
|
1197 |
+
if (ampforwp_get_setting('amp-core-end-point')) {
|
1198 |
+
global $wp;
|
1199 |
+
$url = home_url(add_query_arg(array($_GET), $wp->request));
|
1200 |
+
$urlArray = explode("/", $url);
|
1201 |
+
if( in_array( '?' . AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1202 |
+
return true;
|
1203 |
+
}
|
1204 |
+
}
|
1205 |
$urlArray = explode("/", $url);
|
1206 |
if( !in_array( AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1207 |
return false;
|
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.66.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
193 |
= 1.0.66.1 (26th October 2020) =
|
194 |
* Fixed: Validation error due to amp-web-push AMP component script #4796
|
195 |
* Fixed: Validation error due to amp-fx-flying-carpet AMP component script #4794
|
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.66.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.66.2 (28th October 2020) =
|
194 |
+
* Fixed: Content not visible after 1.0.66 update #4744
|
195 |
+
|
196 |
= 1.0.66.1 (26th October 2020) =
|
197 |
* Fixed: Validation error due to amp-web-push AMP component script #4796
|
198 |
* Fixed: Validation error due to amp-fx-flying-carpet AMP component script #4794
|
templates/features.php
CHANGED
@@ -419,7 +419,7 @@ 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 |
-
}else if(ampforwp_get_setting('amp-core-end-point') && (ampforwp_is_home() || ampforwp_is_front_page() || ampforwp_is_blog() || is_category() || is_tag())){
|
423 |
$amp_url = ampforwp_url_controller($amp_url);
|
424 |
}
|
425 |
return esc_url_raw($amp_url);
|
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() || ampforwp_is_blog() || is_category() || is_tag() || is_front_page())){
|
423 |
$amp_url = ampforwp_url_controller($amp_url);
|
424 |
}
|
425 |
return esc_url_raw($amp_url);
|