Version Description
(20th July 2021) = * Fixed: AMP page not showing with query string from 1.0.66 version #5096 * Fixed: Related posts title and excerpt not appearing properly #5095 * Fixed: Debug warnigs with WP Foro plugin #5094
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.14 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.13 to 1.0.77.14
- README.md +6 -7
- accelerated-moblie-pages.php +2 -2
- changelog.txt +5 -0
- components/related-posts/related-posts.php +2 -2
- includes/thirdparty-compatibility.php +6 -0
- readme.txt +6 -7
- templates/features.php +2 -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.8
|
7 |
-
Stable tag: 1.0.77.
|
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.13 (16th July 2021) =
|
201 |
* Fixed: FooGallery plugin not working with AMP #5090
|
202 |
* Fixed: Console error when Back to Top link option is enabled #5091
|
@@ -207,10 +212,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
207 |
* Fixed: Exclude categories loop not working #5088
|
208 |
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
209 |
|
210 |
-
= 1.0.77.11 (6th July 2021) =
|
211 |
-
* Improvements: Improved readme.txt for newer features #5080
|
212 |
-
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
213 |
-
* Fixed: Removed the percentage symbol beside AMP icon in dashboard #5082
|
214 |
-
* Fixed: Gallery thumbnail image improved #5003
|
215 |
-
|
216 |
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.14
|
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.14 (20th July 2021) =
|
201 |
+
* Fixed: AMP page not showing with query string from 1.0.66 version #5096
|
202 |
+
* Fixed: Related posts title and excerpt not appearing properly #5095
|
203 |
+
* Fixed: Debug warnigs with WP Foro plugin #5094
|
204 |
+
|
205 |
= 1.0.77.13 (16th July 2021) =
|
206 |
* Fixed: FooGallery plugin not working with AMP #5090
|
207 |
* Fixed: Console error when Back to Top link option is enabled #5091
|
212 |
* Fixed: Exclude categories loop not working #5088
|
213 |
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
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.
|
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.
|
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.14
|
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.14');
|
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.13 (16th July 2021) =
|
4 |
* Fixed: FooGallery plugin not working with AMP #5090
|
5 |
* Fixed: Console error when Back to Top link option is enabled #5091
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.77.14 (20th July 2021) =
|
4 |
+
* Fixed: AMP page not showing with query string from 1.0.66 version #5096
|
5 |
+
* Fixed: Related posts title and excerpt not appearing properly #5095
|
6 |
+
* Fixed: Debug warnigs with WP Foro plugin #5094
|
7 |
+
|
8 |
= 1.0.77.13 (16th July 2021) =
|
9 |
* Fixed: FooGallery plugin not working with AMP #5090
|
10 |
* Fixed: Console error when Back to Top link option is enabled #5091
|
components/related-posts/related-posts.php
CHANGED
@@ -193,7 +193,7 @@ function ampforwp_get_relatedpost_content($argsdata=array()){
|
|
193 |
}
|
194 |
?>
|
195 |
<div class="related_link">
|
196 |
-
<
|
197 |
<?php
|
198 |
$show_excerpt = (isset($argsdata['show_excerpt'])? $argsdata['show_excerpt'] : true);
|
199 |
if($show_excerpt){
|
@@ -202,7 +202,7 @@ function ampforwp_get_relatedpost_content($argsdata=array()){
|
|
202 |
}else{
|
203 |
$content = get_the_content();
|
204 |
}
|
205 |
-
|
206 |
if(empty($excerpt_length)){
|
207 |
$excerpt_length = 15;
|
208 |
}
|
193 |
}
|
194 |
?>
|
195 |
<div class="related_link">
|
196 |
+
<a href="<?php echo esc_url( $related_post_permalink ); ?>" title="<?php echo esc_html( $title ); ?>"><?php the_title(); ?></a>
|
197 |
<?php
|
198 |
$show_excerpt = (isset($argsdata['show_excerpt'])? $argsdata['show_excerpt'] : true);
|
199 |
if($show_excerpt){
|
202 |
}else{
|
203 |
$content = get_the_content();
|
204 |
}
|
205 |
+
?><p><?php $excerpt_length = ampforwp_get_setting('enable-excerpt-single-related-posts');
|
206 |
if(empty($excerpt_length)){
|
207 |
$excerpt_length = 15;
|
208 |
}
|
includes/thirdparty-compatibility.php
CHANGED
@@ -1214,6 +1214,12 @@ function ampforwp_is_amp_inURL($url){
|
|
1214 |
if( in_array( '?' . AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1215 |
return true;
|
1216 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1217 |
}
|
1218 |
if (ampforwp_get_setting('ampforwp-amp-takeover')) {
|
1219 |
return true;
|
1214 |
if( in_array( '?' . AMPFORWP_AMP_QUERY_VAR , $urlArray ) ) {
|
1215 |
return true;
|
1216 |
}
|
1217 |
+
else {
|
1218 |
+
foreach($urlArray as $index => $string) {
|
1219 |
+
if (strpos($string, '?' . AMPFORWP_AMP_QUERY_VAR) !== FALSE)
|
1220 |
+
return true;
|
1221 |
+
}
|
1222 |
+
}
|
1223 |
}
|
1224 |
if (ampforwp_get_setting('ampforwp-amp-takeover')) {
|
1225 |
return true;
|
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.
|
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.13 (16th July 2021) =
|
198 |
* Fixed: FooGallery plugin not working with AMP #5090
|
199 |
* Fixed: Console error when Back to Top link option is enabled #5091
|
@@ -204,10 +209,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
204 |
* Fixed: Exclude categories loop not working #5088
|
205 |
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
206 |
|
207 |
-
= 1.0.77.11 (6th July 2021) =
|
208 |
-
* Improvements: Improved readme.txt for newer features #5080
|
209 |
-
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
210 |
-
* Fixed: Removed the percentage symbol beside AMP icon in dashboard #5082
|
211 |
-
* Fixed: Gallery thumbnail image improved #5003
|
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.14
|
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.14 (20th July 2021) =
|
198 |
+
* Fixed: AMP page not showing with query string from 1.0.66 version #5096
|
199 |
+
* Fixed: Related posts title and excerpt not appearing properly #5095
|
200 |
+
* Fixed: Debug warnigs with WP Foro plugin #5094
|
201 |
+
|
202 |
= 1.0.77.13 (16th July 2021) =
|
203 |
* Fixed: FooGallery plugin not working with AMP #5090
|
204 |
* Fixed: Console error when Back to Top link option is enabled #5091
|
209 |
* Fixed: Exclude categories loop not working #5088
|
210 |
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/features.php
CHANGED
@@ -3923,8 +3923,8 @@ function ampforwp_remove_rel_on_bp(){
|
|
3923 |
}
|
3924 |
// Removing AMP from WPForo Forums Pages #592
|
3925 |
if(class_exists('wpForo')){
|
3926 |
-
|
3927 |
-
$foid =
|
3928 |
$fid = $wpforo->pageid;
|
3929 |
if($foid==$fid){
|
3930 |
remove_action( 'wp_head', 'amp_frontend_add_canonical');
|
3923 |
}
|
3924 |
// Removing AMP from WPForo Forums Pages #592
|
3925 |
if(class_exists('wpForo')){
|
3926 |
+
global $wpdb,$wpforo;
|
3927 |
+
$foid = ampforwp_get_the_ID();
|
3928 |
$fid = $wpforo->pageid;
|
3929 |
if($foid==$fid){
|
3930 |
remove_action( 'wp_head', 'amp_frontend_add_canonical');
|