Version Description
(18th February 2022) = * Fixed: If the server-side cache is aggressive then the pagination URL with ?amp=1 is redirecting to non-AMP #5208 * Fixed: Errror getting in featured-image.php, on line 77 #5207 * Fixed: Need to keep the mobile redirection filter outside of any condition #5216
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.36 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.35 to 1.0.77.36
- README.md +7 -6
- accelerated-moblie-pages.php +2 -2
- changelog.txt +5 -0
- components/featured-image/featured-image.php +1 -1
- includes/redirect.php +8 -5
- readme.txt +7 -6
- templates/features.php +5 -1
README.md
CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
|
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.
|
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.35 (21th January 2022) =
|
201 |
* Fixed: Embed URLs not working with Amp takeover active #5193
|
202 |
* Fixed: Need to change Google Fonts display to optional #5191
|
@@ -211,8 +216,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
211 |
* Fixed: Replace webvitalsdev to Microwork #5183
|
212 |
* Fixed: Wrong Notice for first time installation #5184
|
213 |
|
214 |
-
= 1.0.77.33 (15th December 2021) =
|
215 |
-
* Fixed: Code improvements in AMP options panel #5179
|
216 |
-
* Fixed: Stylesheet errors when using Qoxag theme #5177
|
217 |
-
|
218 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 1.0.77.36
|
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.36 (18th February 2022) =
|
201 |
+
* Fixed: If the server-side cache is aggressive then the pagination URL with ?amp=1 is redirecting to non-AMP #5208
|
202 |
+
* Fixed: Errror getting in featured-image.php, on line 77 #5207
|
203 |
+
* Fixed: Need to keep the mobile redirection filter outside of any condition #5216
|
204 |
+
|
205 |
= 1.0.77.35 (21th January 2022) =
|
206 |
* Fixed: Embed URLs not working with Amp takeover active #5193
|
207 |
* Fixed: Need to change Google Fonts display to optional #5191
|
216 |
* Fixed: Replace webvitalsdev to Microwork #5183
|
217 |
* Fixed: Wrong Notice for first time installation #5184
|
218 |
|
|
|
|
|
|
|
|
|
219 |
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.36
|
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.36');
|
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.35 (21th January 2022) =
|
4 |
* Fixed: Embed URLs not working with Amp takeover active #5193
|
5 |
* Fixed: Need to change Google Fonts display to optional #5191
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.77.36 (18th February 2022) =
|
4 |
+
* Fixed: If the server-side cache is aggressive then the pagination URL with ?amp=1 is redirecting to non-AMP #5208
|
5 |
+
* Fixed: Errror getting in featured-image.php, on line 77 #5207
|
6 |
+
* Fixed: Need to keep the mobile redirection filter outside of any condition #5216
|
7 |
+
|
8 |
= 1.0.77.35 (21th January 2022) =
|
9 |
* Fixed: Embed URLs not working with Amp takeover active #5193
|
10 |
* Fixed: Need to change Google Fonts display to optional #5191
|
components/featured-image/featured-image.php
CHANGED
@@ -74,7 +74,7 @@ function ampforwp_framework_get_featured_image(){
|
|
74 |
if ( empty($srcet) ) {
|
75 |
$srcet = $image[0];
|
76 |
}
|
77 |
-
$amp_html = '<amp-img data-hero src="'.esc_url($image[0]).'" srcset="'.esc_html($srcet).'" width="'.esc_attr($image[1]).'" height="'.esc_attr($image[2]).'" layout=responsive alt="'.esc_attr($alt).'"></amp-img>';
|
78 |
}
|
79 |
}
|
80 |
elseif ( ampforwp_is_custom_field_featured_image() ) {
|
74 |
if ( empty($srcet) ) {
|
75 |
$srcet = $image[0];
|
76 |
}
|
77 |
+
$amp_html = '<amp-img data-hero src="'.esc_url($image[0]).'" srcset="'.esc_html($srcet).'" width="'.esc_attr($image[1]).'" height="'.esc_attr($image[2]).'" layout="responsive" alt="'.esc_attr($alt).'"></amp-img>';
|
78 |
}
|
79 |
}
|
80 |
elseif ( ampforwp_is_custom_field_featured_image() ) {
|
includes/redirect.php
CHANGED
@@ -158,6 +158,14 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
|
|
158 |
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
159 |
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
160 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
// AMP Takeover
|
162 |
if ( (ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) && !ampforwp_is_non_amp() ) {
|
163 |
$redirection_location = '';
|
@@ -177,11 +185,6 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
|
|
177 |
if(preg_match('/robots\.txt/', $this_url)){
|
178 |
return;
|
179 |
}
|
180 |
-
$stop_mob_redirection = false;
|
181 |
-
$stop_mob_redirection = apply_filters('ampforwp_modify_mobile_redirection',$stop_mob_redirection);
|
182 |
-
if($stop_mob_redirection === true){
|
183 |
-
return;
|
184 |
-
}
|
185 |
// return if the current page is Feed page, as we don't need anything on feedpaged
|
186 |
if ( is_feed() ) {
|
187 |
return;
|
158 |
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
159 |
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
160 |
}
|
161 |
+
|
162 |
+
//Stop Mobile Redirection
|
163 |
+
$stop_mob_redirection = false;
|
164 |
+
$stop_mob_redirection = apply_filters('ampforwp_modify_mobile_redirection',$stop_mob_redirection);
|
165 |
+
if($stop_mob_redirection === true){
|
166 |
+
return;
|
167 |
+
}
|
168 |
+
|
169 |
// AMP Takeover
|
170 |
if ( (ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true) && !ampforwp_is_non_amp() ) {
|
171 |
$redirection_location = '';
|
185 |
if(preg_match('/robots\.txt/', $this_url)){
|
186 |
return;
|
187 |
}
|
|
|
|
|
|
|
|
|
|
|
188 |
// return if the current page is Feed page, as we don't need anything on feedpaged
|
189 |
if ( is_feed() ) {
|
190 |
return;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
|
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.
|
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.35 (21th January 2022) =
|
198 |
* Fixed: Embed URLs not working with Amp takeover active #5193
|
199 |
* Fixed: Need to change Google Fonts display to optional #5191
|
@@ -208,8 +213,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
208 |
* Fixed: Replace webvitalsdev to Microwork #5183
|
209 |
* Fixed: Wrong Notice for first time installation #5184
|
210 |
|
211 |
-
= 1.0.77.33 (15th December 2021) =
|
212 |
-
* Fixed: Code improvements in AMP options panel #5179
|
213 |
-
* Fixed: Stylesheet errors when using Qoxag theme #5177
|
214 |
-
|
215 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 1.0.77.36
|
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.36 (18th February 2022) =
|
198 |
+
* Fixed: If the server-side cache is aggressive then the pagination URL with ?amp=1 is redirecting to non-AMP #5208
|
199 |
+
* Fixed: Errror getting in featured-image.php, on line 77 #5207
|
200 |
+
* Fixed: Need to keep the mobile redirection filter outside of any condition #5216
|
201 |
+
|
202 |
= 1.0.77.35 (21th January 2022) =
|
203 |
* Fixed: Embed URLs not working with Amp takeover active #5193
|
204 |
* Fixed: Need to change Google Fonts display to optional #5191
|
213 |
* Fixed: Replace webvitalsdev to Microwork #5183
|
214 |
* Fixed: Wrong Notice for first time installation #5184
|
215 |
|
|
|
|
|
|
|
|
|
216 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/features.php
CHANGED
@@ -4357,7 +4357,11 @@ function ampforwp_modify_rel_amphtml_paginated_post($url) {
|
|
4357 |
$new_url = trailingslashit($url) . user_trailingslashit($post_paginated_page);
|
4358 |
}
|
4359 |
|
4360 |
-
|
|
|
|
|
|
|
|
|
4361 |
return $new_url;
|
4362 |
}
|
4363 |
}
|
4357 |
$new_url = trailingslashit($url) . user_trailingslashit($post_paginated_page);
|
4358 |
}
|
4359 |
|
4360 |
+
if(ampforwp_get_setting('ampforwp-pagination-link-type')==true ){
|
4361 |
+
$new_url = ampforwp_url_controller($new_url);
|
4362 |
+
}else{
|
4363 |
+
$new_url = add_query_arg(AMPFORWP_AMP_QUERY_VAR,'1',$new_url);
|
4364 |
+
}
|
4365 |
return $new_url;
|
4366 |
}
|
4367 |
}
|