Version Description
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.30 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.29 to 1.0.77.30
- README.md +9 -4
- accelerated-moblie-pages.php +2 -2
- changelog.txt +8 -0
- classes/class-ampforwp-infinite-scroll.php +16 -1
- includes/vendor/amp/includes/amp-post-template-actions.php +20 -2
- includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php +56 -0
- includes/vendor/aq_resizer.php +1 -1
- readme.txt +9 -4
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,14 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
1.0.77.29 (28TH October 2021) =
|
201 |
Improvements: Search results opens directly in Google search in AMP #5161
|
202 |
Fixed: Undefined variable - pathExploded debug notice #5160
|
@@ -210,7 +218,4 @@ Fixed: Function name updated in the seo framework #5155
|
|
210 |
Fixed: Lifetime license key is showing as expired in admin panel #5156
|
211 |
Fixed: Video is not loading when created by slider revolution with divi #5159
|
212 |
|
213 |
-
1.0.77.27 (21TH October 2021) =
|
214 |
-
Improvements: Added AdPushup Support in AMP #5144
|
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.30
|
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.30 (25th November 2021) =
|
201 |
+
* Improvements: Added Filter to modify title in AMP #5170
|
202 |
+
* Fixed: Whitelisted amp-render tag #5171
|
203 |
+
* Fixed: Featured image not appearing in loop with Offload Media Lite #5153
|
204 |
+
* Fixed: Infinite scroll showing posts from different categories also when same category is selected #5168
|
205 |
+
* Fixed: Webp images not appearing in preload with WEBP express plugin #5165
|
206 |
+
* Fixed: pagination 404 issue with infinite scroll #5167
|
207 |
+
|
208 |
1.0.77.29 (28TH October 2021) =
|
209 |
Improvements: Search results opens directly in Google search in AMP #5161
|
210 |
Fixed: Undefined variable - pathExploded debug notice #5160
|
218 |
Fixed: Lifetime license key is showing as expired in admin panel #5156
|
219 |
Fixed: Video is not loading when created by slider revolution with divi #5159
|
220 |
|
|
|
|
|
|
|
221 |
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.30
|
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.30');
|
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,13 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
1.0.77.29 (28TH October 2021) =
|
4 |
Improvements: Search results opens directly in Google search in AMP #5161
|
5 |
Fixed: Undefined variable - pathExploded debug notice #5160
|
1 |
== Changelog ==
|
2 |
|
3 |
+
1.0.77.30 (25th November 2021) =
|
4 |
+
* Improvements: Added Filter to modify title in AMP #5170
|
5 |
+
* Fixed: Whitelisted amp-render tag #5171
|
6 |
+
* Fixed: Featured image not appearing in loop with Offload Media Lite #5153
|
7 |
+
* Fixed: Infinite scroll showing posts from different categories also when same category is selected #5168
|
8 |
+
* Fixed: Webp images not appearing in preload with WEBP express plugin #5165
|
9 |
+
* Fixed: pagination 404 issue with infinite scroll #5167
|
10 |
+
|
11 |
1.0.77.29 (28TH October 2021) =
|
12 |
Improvements: Search results opens directly in Google search in AMP #5161
|
13 |
Fixed: Undefined variable - pathExploded debug notice #5160
|
classes/class-ampforwp-infinite-scroll.php
CHANGED
@@ -131,7 +131,15 @@ if( ! class_exists('AMPforWP_Infinite_Scroll') ) {
|
|
131 |
$category_ids = array();
|
132 |
foreach($categories as $individual_category){
|
133 |
$category_ids[] = $individual_category->cat_ID;
|
134 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
136 |
$query_args['category__in'] = $category_ids;
|
137 |
}
|
@@ -187,6 +195,13 @@ if( ! class_exists('AMPforWP_Infinite_Scroll') ) {
|
|
187 |
// Change the next link to paged+3
|
188 |
// reason: amp-next-page will show the results for 3 pages
|
189 |
$next_link = preg_replace('/'.($paged+1).'/', ($paged+3), $next_link);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
return $next_link;
|
191 |
}
|
192 |
}
|
131 |
$category_ids = array();
|
132 |
foreach($categories as $individual_category){
|
133 |
$category_ids[] = $individual_category->cat_ID;
|
134 |
+
}
|
135 |
+
if(class_exists( 'WPSEO_Options' )){
|
136 |
+
$primary_cat = get_post_meta(ampforwp_get_the_ID(), '_yoast_wpseo_primary_category', true);
|
137 |
+
if (isset($primary_cat)) {
|
138 |
+
$primary_cat = explode( " ", $primary_cat);
|
139 |
+
$category_ids = array_intersect($category_ids,
|
140 |
+
$primary_cat);
|
141 |
+
}
|
142 |
+
}
|
143 |
}
|
144 |
$query_args['category__in'] = $category_ids;
|
145 |
}
|
195 |
// Change the next link to paged+3
|
196 |
// reason: amp-next-page will show the results for 3 pages
|
197 |
$next_link = preg_replace('/'.($paged+1).'/', ($paged+3), $next_link);
|
198 |
+
//Pagination + infinite scroll creates 404 links #5167
|
199 |
+
preg_match_all('/<a href="(.*?)"(.*?)<\/a>/', $next_link, $match);
|
200 |
+
$url = $match[1][0];
|
201 |
+
$headers = get_headers($url, 1);
|
202 |
+
if(isset($headers[0]) && !stripos($headers[0], "200 OK")){
|
203 |
+
return;
|
204 |
+
}
|
205 |
return $next_link;
|
206 |
}
|
207 |
}
|
includes/vendor/amp/includes/amp-post-template-actions.php
CHANGED
@@ -8,6 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
8 |
function amp_post_template_add_title( $amp_template ) {
|
9 |
$title = $amp_template->get( 'document_title' );
|
10 |
$title = str_replace('–', '-', $title);
|
|
|
11 |
?>
|
12 |
<title><?php echo esc_html( $title ); ?></title>
|
13 |
<?php
|
@@ -60,9 +61,26 @@ function amp_post_template_add_cached_link($amp_template) {
|
|
60 |
$image_size = ampforwp_get_setting('swift-featued-image-size');
|
61 |
$image = wp_get_attachment_image_src( $thumb_id, $image_size );
|
62 |
if($image!="" && isset($image[0]) && ampforwp_get_setting('swift-featued-image')){
|
63 |
-
if(function_exists('_imagify_init')
|
64 |
$image[0] = esc_url($image[0]).".webp";
|
65 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
<link rel="preload" href="<?php echo esc_url($image[0]);?>" as="image">
|
67 |
<?php } ?>
|
68 |
<?php
|
8 |
function amp_post_template_add_title( $amp_template ) {
|
9 |
$title = $amp_template->get( 'document_title' );
|
10 |
$title = str_replace('–', '-', $title);
|
11 |
+
$title = apply_filters( 'ampforwp_modify_title', $title );
|
12 |
?>
|
13 |
<title><?php echo esc_html( $title ); ?></title>
|
14 |
<?php
|
61 |
$image_size = ampforwp_get_setting('swift-featued-image-size');
|
62 |
$image = wp_get_attachment_image_src( $thumb_id, $image_size );
|
63 |
if($image!="" && isset($image[0]) && ampforwp_get_setting('swift-featued-image')){
|
64 |
+
if(function_exists('_imagify_init')){
|
65 |
$image[0] = esc_url($image[0]).".webp";
|
66 |
+
}
|
67 |
+
if(function_exists('webp_express_process_post')){
|
68 |
+
$img_url_webp = '';
|
69 |
+
$img_url = $image[0];
|
70 |
+
if(!preg_match('/\.webp/', $img_url)){
|
71 |
+
$config = \WebPExpress\Config::loadConfigAndFix();
|
72 |
+
if($config['destination-folder'] == 'mingled'){
|
73 |
+
$img_url_webp = $img_url;
|
74 |
+
}else{
|
75 |
+
$img_url_webp = preg_replace('/http(.*?)\/wp-content(.*?)/', 'http$1/wp-content/webp-express/webp-images$2', $img_url);
|
76 |
+
if($config['destination-structure'] == 'doc-root'){
|
77 |
+
$img_url_webp = preg_replace('/http(.*?)\/wp-content(.*?)/', 'http$1/wp-content/webp-express/webp-images/doc-root/wp-content$2', $img_url);
|
78 |
+
}
|
79 |
+
}
|
80 |
+
$image[0] = esc_url($img_url_webp).".webp";
|
81 |
+
}
|
82 |
+
}
|
83 |
+
?>
|
84 |
<link rel="preload" href="<?php echo esc_url($image[0]);?>" as="image">
|
85 |
<?php } ?>
|
86 |
<?php
|
includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php
CHANGED
@@ -2210,6 +2210,62 @@ class AMP_Allowed_Tags_Generated {
|
|
2210 |
),
|
2211 |
),
|
2212 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2213 |
'amp-riddle-quiz' => array(
|
2214 |
array(
|
2215 |
'attr_spec_list' => array(
|
2210 |
),
|
2211 |
),
|
2212 |
),
|
2213 |
+
'amp-render' => array(
|
2214 |
+
array(
|
2215 |
+
'attr_spec_list' => array(
|
2216 |
+
'binding' => array(
|
2217 |
+
'value' => array(
|
2218 |
+
'always',
|
2219 |
+
'never',
|
2220 |
+
'no',
|
2221 |
+
'refresh',
|
2222 |
+
),
|
2223 |
+
),
|
2224 |
+
'credentials' => array(),
|
2225 |
+
'data-amp-bind-src' => array(),
|
2226 |
+
'key' => array(),
|
2227 |
+
'media' => array(),
|
2228 |
+
'noloading' => array(
|
2229 |
+
'value' => array(
|
2230 |
+
'',
|
2231 |
+
),
|
2232 |
+
),
|
2233 |
+
'src' => array(
|
2234 |
+
'disallowed_value_regex' => '__amp_source_origin',
|
2235 |
+
'value_url' => array(
|
2236 |
+
'protocol' => array(
|
2237 |
+
'amp-script',
|
2238 |
+
'amp-state',
|
2239 |
+
'https',
|
2240 |
+
),
|
2241 |
+
),
|
2242 |
+
),
|
2243 |
+
'template' => array(),
|
2244 |
+
'xssi-prefix' => array(),
|
2245 |
+
),
|
2246 |
+
'tag_spec' => array(
|
2247 |
+
'amp_layout' => array(
|
2248 |
+
'supported_layouts' => array(
|
2249 |
+
5,
|
2250 |
+
6,
|
2251 |
+
2,
|
2252 |
+
3,
|
2253 |
+
7,
|
2254 |
+
1,
|
2255 |
+
4,
|
2256 |
+
),
|
2257 |
+
),
|
2258 |
+
'mandatory_anyof' => array(
|
2259 |
+
'data-amp-bind-src',
|
2260 |
+
'src',
|
2261 |
+
),
|
2262 |
+
'requires_extension' => array(
|
2263 |
+
'amp-render',
|
2264 |
+
),
|
2265 |
+
'spec_url' => 'https://amp.dev/documentation/components/amp-render/',
|
2266 |
+
),
|
2267 |
+
),
|
2268 |
+
),
|
2269 |
'amp-riddle-quiz' => array(
|
2270 |
array(
|
2271 |
'attr_spec_list' => array(
|
includes/vendor/aq_resizer.php
CHANGED
@@ -292,7 +292,7 @@ if(!function_exists('ampforwp_aq_resize')) {
|
|
292 |
// Disable ampforwp_aq_resize and return images without compressing.
|
293 |
// Useful for some who wants to disable when using CDN images
|
294 |
$disable_aq_resize = false;
|
295 |
-
if (function_exists('imagify_set_activation') || function_exists('ud_check_stateless_media') || function_exists('webp_express_process_post')) {
|
296 |
$disable_aq_resize = true;
|
297 |
}
|
298 |
$disable_aq_resize = apply_filters('ampforwp_disable_aq_resize', $disable_aq_resize, $url);
|
292 |
// Disable ampforwp_aq_resize and return images without compressing.
|
293 |
// Useful for some who wants to disable when using CDN images
|
294 |
$disable_aq_resize = false;
|
295 |
+
if (function_exists('imagify_set_activation') || function_exists('ud_check_stateless_media') || function_exists('webp_express_process_post') || class_exists( 'WP_Offload_Media_Autoloader')) {
|
296 |
$disable_aq_resize = true;
|
297 |
}
|
298 |
$disable_aq_resize = apply_filters('ampforwp_disable_aq_resize', $disable_aq_resize, $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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,14 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
1.0.77.29 (28TH October 2021) =
|
198 |
Improvements: Search results opens directly in Google search in AMP #5161
|
199 |
Fixed: Undefined variable - pathExploded debug notice #5160
|
@@ -207,7 +215,4 @@ Fixed: Function name updated in the seo framework #5155
|
|
207 |
Fixed: Lifetime license key is showing as expired in admin panel #5156
|
208 |
Fixed: Video is not loading when created by slider revolution with divi #5159
|
209 |
|
210 |
-
1.0.77.26 (21TH October 2021) =
|
211 |
-
Improvements: Added AdPushup Support in AMP #5144
|
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.30
|
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.30 (25th November 2021) =
|
198 |
+
* Improvements: Added Filter to modify title in AMP #5170
|
199 |
+
* Fixed: Whitelisted amp-render tag #5171
|
200 |
+
* Fixed: Featured image not appearing in loop with Offload Media Lite #5153
|
201 |
+
* Fixed: Infinite scroll showing posts from different categories also when same category is selected #5168
|
202 |
+
* Fixed: Webp images not appearing in preload with WEBP express plugin #5165
|
203 |
+
* Fixed: pagination 404 issue with infinite scroll #5167
|
204 |
+
|
205 |
1.0.77.29 (28TH October 2021) =
|
206 |
Improvements: Search results opens directly in Google search in AMP #5161
|
207 |
Fixed: Undefined variable - pathExploded debug notice #5160
|
215 |
Fixed: Lifetime license key is showing as expired in admin panel #5156
|
216 |
Fixed: Video is not loading when created by slider revolution with divi #5159
|
217 |
|
|
|
|
|
|
|
218 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|