Version Description
(17th August 2020) = * Improvement: Removed unwanted javascript from AMP pages #4689 * Fixed: Call to undefined function fifu_amp_url() #4688 * Fixed: jQuery.fn.live() is deprecated warnings #4706
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.62.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.62 to 1.0.62.1
- README.md +6 -44
- accelerated-moblie-pages.php +2 -2
- changelog.txt +5 -0
- includes/features/performance/performance-functions.php +3 -3
- includes/modules/js/amp.js +6 -6
- readme.txt +6 -44
- templates/features.php +12 -0
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.62
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -193,6 +193,11 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
196 |
= 1.0.62 (15th August 2020) =
|
197 |
* Improvement: Added Yoast Local SEO plugin compatibility #4170
|
198 |
* Improvement: Added option for changing the tags for the accordion module in AMP Page Builder #4208
|
@@ -207,47 +212,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
207 |
= 1.0.61.2 (5th August 2020) =
|
208 |
* Fixed: Removed Helpscout Beacon from Options Panel #4682
|
209 |
|
210 |
-
= 1.0.61.1 (4th August 2020) =
|
211 |
-
* Fixed: The right and left arrows are converting into the special characters in AMP #4668
|
212 |
-
|
213 |
-
= 1.0.61 (3rd August 2020) =
|
214 |
-
* Improvement: Added Open By Default option in accordion module of AMP Page Builder #4597
|
215 |
-
* Fixed: Wrong preview link is generating for the AMP pages and posts #4670
|
216 |
-
* Fixed: Code improved in category base and tag base remover #4664
|
217 |
-
* Fixed: Wrong breadcrumb links are generating in the AMP #4666
|
218 |
-
* Fixed: Optimize gallery code to enhance performance and improve the page load time #4656
|
219 |
-
* Fixed: Homepage URL has /amp at the end even after enabling AMP Takeover #4662
|
220 |
-
* Fixed: Background color not appearing in table when created with Tiny MCE advanced plugin #4627
|
221 |
-
* Fixed: Header right side icons styling improved in Design 3 #3935
|
222 |
-
* Fixed: The right and left arrows are converting into the special characters in AMP #4668
|
223 |
-
* Fixed: Removed Shorthand versions of PHP from the code #4659
|
224 |
-
* Fixed: Wrong width and height in logo for SVG images #4650
|
225 |
-
|
226 |
-
= 1.0.60 (27th July 2020) =
|
227 |
-
* Improvement: Added below the related post hook #4653
|
228 |
-
* Fixed: Validation errors caused by Autoptimize for logged in users #4586
|
229 |
-
* Fixed: Styling issues with Reactions plugin by Vicomi #4637
|
230 |
-
* Fixed: If category name has special characters AMP Pagebuilder was not working #4610
|
231 |
-
* Fixed: autoplay attribute not working in the amp-vimeo tag #4648
|
232 |
-
* Fixed: incorrect width and height of logo in AMP #4650
|
233 |
-
* Fixed: Styling issues with AdsforWP section #4658
|
234 |
-
* Fixed: Code improvements for options panel #4647
|
235 |
-
* Fixed: Recent post appearing on pages as well in design 3 #4651
|
236 |
-
|
237 |
-
= 1.0.59 (23rd July 2020) =
|
238 |
-
* Improvement: Added noreferrer noopener attributes on social links #4509
|
239 |
-
* Improvement: Added webmaster tools meta tags when AMP takeover is enabled #4602
|
240 |
-
* Improvement: Added Conversion Goals Tracking for AMP Extension #4647 #4655
|
241 |
-
* Improvement: Added a filter to turn on/off the Aqua_resizer #4641
|
242 |
-
* Improvement: Added a filter to add/remove fields in Google Analytics #4646
|
243 |
-
* Fixed: noindex issue on homepage using Yoast #4609
|
244 |
-
* Fixed: Pagination not working in AMP with Magplus theme #4611
|
245 |
-
* Fixed: If category name has special characters AMP Pagebuilder was not working #4610
|
246 |
-
* Fixed: Letter-spacing issue in Swift Theme if RTL is enabled #4598
|
247 |
-
* Fixed: URL with square brackets [ ] causing issue in galleries AMP #4635
|
248 |
-
* Fixed: Google Analytics trigger functionality not working #4645
|
249 |
-
* Fixed: Validation error when css icons and sticky header is selected #4640
|
250 |
-
* Fixed: If Extension manager was active it was showing incorrect message #4613
|
251 |
-
* Fixed: Debug warnings #4626 #4639
|
252 |
-
|
253 |
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.5
|
7 |
+
Stable tag: 1.0.62.1
|
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.62.1 (17th August 2020) =
|
197 |
+
* Improvement: Removed unwanted javascript from AMP pages #4689
|
198 |
+
* Fixed: Call to undefined function fifu_amp_url() #4688
|
199 |
+
* Fixed: jQuery.fn.live() is deprecated warnings #4706
|
200 |
+
|
201 |
= 1.0.62 (15th August 2020) =
|
202 |
* Improvement: Added Yoast Local SEO plugin compatibility #4170
|
203 |
* Improvement: Added option for changing the tags for the accordion module in AMP Page Builder #4208
|
212 |
= 1.0.61.2 (5th August 2020) =
|
213 |
* Fixed: Removed Helpscout Beacon from Options Panel #4682
|
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.62
|
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.62');
|
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.62.1
|
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.62.1');
|
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.62 (15th August 2020) =
|
4 |
* Improvement: Added Yoast Local SEO plugin compatibility #4170
|
5 |
* Improvement: Added option for changing the tags for the accordion module in AMP Page Builder #4208
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.62.1 (17th August 2020) =
|
4 |
+
* Improvement: Removed unwanted javascript from AMP pages #4689
|
5 |
+
* Fixed: Call to undefined function fifu_amp_url() #4688
|
6 |
+
* Fixed: jQuery.fn.live() is deprecated warnings #4706
|
7 |
+
|
8 |
= 1.0.62 (15th August 2020) =
|
9 |
* Improvement: Added Yoast Local SEO plugin compatibility #4170
|
10 |
* Improvement: Added option for changing the tags for the accordion module in AMP Page Builder #4208
|
includes/features/performance/performance-functions.php
CHANGED
@@ -27,9 +27,9 @@ function ampforwp_minify_html_output($content_buffer){
|
|
27 |
if(class_exists('Cli_Optimizer') && preg_match('/<style type="text\/css">@font-face(.*?)<\/style>/s', $content_buffer)!=0){
|
28 |
$content_buffer = preg_replace('/<style type="text\/css">@font-face(.*?)<\/style>/s', '', $content_buffer);
|
29 |
}
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
global $redux_builder_amp;
|
34 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
35 |
return $content_buffer;
|
27 |
if(class_exists('Cli_Optimizer') && preg_match('/<style type="text\/css">@font-face(.*?)<\/style>/s', $content_buffer)!=0){
|
28 |
$content_buffer = preg_replace('/<style type="text\/css">@font-face(.*?)<\/style>/s', '', $content_buffer);
|
29 |
}
|
30 |
+
if(preg_match('/<script(.*?)type="text\/javascript"(.*?)>[\s\S]*?<\/script>/', $content_buffer)){
|
31 |
+
$content_buffer = preg_replace('/<script(.*?)type="text\/javascript"(.*?)>[\s\S]*?<\/script>/', '', $content_buffer);
|
32 |
+
}
|
33 |
global $redux_builder_amp;
|
34 |
if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
|
35 |
return $content_buffer;
|
includes/modules/js/amp.js
CHANGED
@@ -2,7 +2,7 @@ jQuery(document).ready(function($) {
|
|
2 |
var count = 0;
|
3 |
|
4 |
//For Blurb Module
|
5 |
-
jQuery(".ampforwp-blurb-add").
|
6 |
console.log('click');
|
7 |
|
8 |
event.preventDefault();
|
@@ -19,12 +19,12 @@ jQuery(document).ready(function($) {
|
|
19 |
'<label for="widget-ampforwp-blurb['+instance+'][features]['+count+'][description]">Description</label>'+
|
20 |
'<textarea class="widefat" id="widget-ampforwp-blurb-'+instance+'-features-'+count+'-description" name="widget-ampforwp-blurb['+instance+'][features]['+count+'][description]" rows=\'6\' cols=\'50\'>This is a sample text which is being used for the dummy purpose to avoid confusion.</textarea> <span class="clear"></span></p>' + '<p> <label for=""> Image: </label><input type="button" class="select-img-'+count+' button left" style="width:auto;" value="Select Image" onclick="ampSelectImage('+count+');"/><input type="button" style="display:none" name="removeimg" id="remove-img-'+count+'" class="button button-secondary remove-img-button" data-count-type="'+count+'" value="Remove Image" onclick="removeImage('+count+')"><img src="'+amp_check_img+'" class="preview-image block-image-'+count+'" >' + '<input type="hidden" id="amp-img-field-'+count+'" class="img'+count+'" style="width:auto;" name="widget-ampforwp-blurb['+instance+'][features]['+count+'][image]" id="'+instance+'-features-'+count+'" value="'+amp_check_img+'" /></p>' + ' <p> <a class="ampforwp-blurb-remove delete button left">Remove Feature</a></p></div></div>');
|
21 |
});
|
22 |
-
jQuery(".ampforwp-blurb-remove").
|
23 |
jQuery(this).parent().parent().parent().remove();
|
24 |
});
|
25 |
|
26 |
//For Text Module
|
27 |
-
jQuery(".ampforwp-text-add").
|
28 |
console.log('click');
|
29 |
|
30 |
event.preventDefault();
|
@@ -41,12 +41,12 @@ jQuery(document).ready(function($) {
|
|
41 |
'<label for="widget-ampforwp-text['+instance+'][features]['+count+'][description]">Description</label>'+
|
42 |
'<textarea class="widefat" id="widget-ampforwp-text-'+instance+'-features-'+count+'-description" name="widget-ampforwp-text['+instance+'][features]['+count+'][description]" rows=\'6\' cols=\'50\'>This is the description added by default </textarea> <span class="clear"></span></p>' + ' <p> <a class="ampforwp-text-remove delete button left">Remove Feature</a></p></div></div>' );
|
43 |
});
|
44 |
-
jQuery(".ampforwp-text-remove").
|
45 |
jQuery(this).parent().parent().parent().remove();
|
46 |
});
|
47 |
|
48 |
//For Button Module
|
49 |
-
jQuery(".ampforwp-button-add").
|
50 |
console.log('click');
|
51 |
|
52 |
event.preventDefault();
|
@@ -80,7 +80,7 @@ jQuery(document).ready(function($) {
|
|
80 |
});
|
81 |
|
82 |
|
83 |
-
jQuery(".ampforwp-button-remove").
|
84 |
jQuery(this).parent().parent().parent().remove();
|
85 |
});
|
86 |
|
2 |
var count = 0;
|
3 |
|
4 |
//For Blurb Module
|
5 |
+
jQuery(".ampforwp-blurb-add").on('click', function(e) {
|
6 |
console.log('click');
|
7 |
|
8 |
event.preventDefault();
|
19 |
'<label for="widget-ampforwp-blurb['+instance+'][features]['+count+'][description]">Description</label>'+
|
20 |
'<textarea class="widefat" id="widget-ampforwp-blurb-'+instance+'-features-'+count+'-description" name="widget-ampforwp-blurb['+instance+'][features]['+count+'][description]" rows=\'6\' cols=\'50\'>This is a sample text which is being used for the dummy purpose to avoid confusion.</textarea> <span class="clear"></span></p>' + '<p> <label for=""> Image: </label><input type="button" class="select-img-'+count+' button left" style="width:auto;" value="Select Image" onclick="ampSelectImage('+count+');"/><input type="button" style="display:none" name="removeimg" id="remove-img-'+count+'" class="button button-secondary remove-img-button" data-count-type="'+count+'" value="Remove Image" onclick="removeImage('+count+')"><img src="'+amp_check_img+'" class="preview-image block-image-'+count+'" >' + '<input type="hidden" id="amp-img-field-'+count+'" class="img'+count+'" style="width:auto;" name="widget-ampforwp-blurb['+instance+'][features]['+count+'][image]" id="'+instance+'-features-'+count+'" value="'+amp_check_img+'" /></p>' + ' <p> <a class="ampforwp-blurb-remove delete button left">Remove Feature</a></p></div></div>');
|
21 |
});
|
22 |
+
jQuery(".ampforwp-blurb-remove").on('click', function() {
|
23 |
jQuery(this).parent().parent().parent().remove();
|
24 |
});
|
25 |
|
26 |
//For Text Module
|
27 |
+
jQuery(".ampforwp-text-add").on('click', function(e) {
|
28 |
console.log('click');
|
29 |
|
30 |
event.preventDefault();
|
41 |
'<label for="widget-ampforwp-text['+instance+'][features]['+count+'][description]">Description</label>'+
|
42 |
'<textarea class="widefat" id="widget-ampforwp-text-'+instance+'-features-'+count+'-description" name="widget-ampforwp-text['+instance+'][features]['+count+'][description]" rows=\'6\' cols=\'50\'>This is the description added by default </textarea> <span class="clear"></span></p>' + ' <p> <a class="ampforwp-text-remove delete button left">Remove Feature</a></p></div></div>' );
|
43 |
});
|
44 |
+
jQuery(".ampforwp-text-remove").on('click', function() {
|
45 |
jQuery(this).parent().parent().parent().remove();
|
46 |
});
|
47 |
|
48 |
//For Button Module
|
49 |
+
jQuery(".ampforwp-button-add").on('click', function(e) {
|
50 |
console.log('click');
|
51 |
|
52 |
event.preventDefault();
|
80 |
});
|
81 |
|
82 |
|
83 |
+
jQuery(".ampforwp-button-remove").on('click', function() {
|
84 |
jQuery(this).parent().parent().parent().remove();
|
85 |
});
|
86 |
|
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.62
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,11 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.62 (15th August 2020) =
|
194 |
* Improvement: Added Yoast Local SEO plugin compatibility #4170
|
195 |
* Improvement: Added option for changing the tags for the accordion module in AMP Page Builder #4208
|
@@ -204,47 +209,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
204 |
= 1.0.61.2 (5th August 2020) =
|
205 |
* Fixed: Removed Helpscout Beacon from Options Panel #4682
|
206 |
|
207 |
-
= 1.0.61.1 (4th August 2020) =
|
208 |
-
* Fixed: The right and left arrows are converting into the special characters in AMP #4668
|
209 |
-
|
210 |
-
= 1.0.61 (3rd August 2020) =
|
211 |
-
* Improvement: Added Open By Default option in accordion module of AMP Page Builder #4597
|
212 |
-
* Fixed: Wrong preview link is generating for the AMP pages and posts #4670
|
213 |
-
* Fixed: Code improved in category base and tag base remover #4664
|
214 |
-
* Fixed: Wrong breadcrumb links are generating in the AMP #4666
|
215 |
-
* Fixed: Optimize gallery code to enhance performance and improve the page load time #4656
|
216 |
-
* Fixed: Homepage URL has /amp at the end even after enabling AMP Takeover #4662
|
217 |
-
* Fixed: Background color not appearing in table when created with Tiny MCE advanced plugin #4627
|
218 |
-
* Fixed: Header right side icons styling improved in Design 3 #3935
|
219 |
-
* Fixed: The right and left arrows are converting into the special characters in AMP #4668
|
220 |
-
* Fixed: Removed Shorthand versions of PHP from the code #4659
|
221 |
-
* Fixed: Wrong width and height in logo for SVG images #4650
|
222 |
-
|
223 |
-
= 1.0.60 (27th July 2020) =
|
224 |
-
* Improvement: Added below the related post hook #4653
|
225 |
-
* Fixed: Validation errors caused by Autoptimize for logged in users #4586
|
226 |
-
* Fixed: Styling issues with Reactions plugin by Vicomi #4637
|
227 |
-
* Fixed: If category name has special characters AMP Pagebuilder was not working #4610
|
228 |
-
* Fixed: autoplay attribute not working in the amp-vimeo tag #4648
|
229 |
-
* Fixed: incorrect width and height of logo in AMP #4650
|
230 |
-
* Fixed: Styling issues with AdsforWP section #4658
|
231 |
-
* Fixed: Code improvements for options panel #4647
|
232 |
-
* Fixed: Recent post appearing on pages as well in design 3 #4651
|
233 |
-
|
234 |
-
= 1.0.59 (23rd July 2020) =
|
235 |
-
* Improvement: Added noreferrer noopener attributes on social links #4509
|
236 |
-
* Improvement: Added webmaster tools meta tags when AMP takeover is enabled #4602
|
237 |
-
* Improvement: Added Conversion Goals Tracking for AMP Extension #4647 #4655
|
238 |
-
* Improvement: Added a filter to turn on/off the Aqua_resizer #4641
|
239 |
-
* Improvement: Added a filter to add/remove fields in Google Analytics #4646
|
240 |
-
* Fixed: noindex issue on homepage using Yoast #4609
|
241 |
-
* Fixed: Pagination not working in AMP with Magplus theme #4611
|
242 |
-
* Fixed: If category name has special characters AMP Pagebuilder was not working #4610
|
243 |
-
* Fixed: Letter-spacing issue in Swift Theme if RTL is enabled #4598
|
244 |
-
* Fixed: URL with square brackets [ ] causing issue in galleries AMP #4635
|
245 |
-
* Fixed: Google Analytics trigger functionality not working #4645
|
246 |
-
* Fixed: Validation error when css icons and sticky header is selected #4640
|
247 |
-
* Fixed: If Extension manager was active it was showing incorrect message #4613
|
248 |
-
* Fixed: Debug warnings #4626 #4639
|
249 |
-
|
250 |
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.5
|
7 |
+
Stable tag: 1.0.62.1
|
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.62.1 (17th August 2020) =
|
194 |
+
* Improvement: Removed unwanted javascript from AMP pages #4689
|
195 |
+
* Fixed: Call to undefined function fifu_amp_url() #4688
|
196 |
+
* Fixed: jQuery.fn.live() is deprecated warnings #4706
|
197 |
+
|
198 |
= 1.0.62 (15th August 2020) =
|
199 |
* Improvement: Added Yoast Local SEO plugin compatibility #4170
|
200 |
* Improvement: Added option for changing the tags for the accordion module in AMP Page Builder #4208
|
209 |
= 1.0.61.2 (5th August 2020) =
|
210 |
* Fixed: Removed Helpscout Beacon from Options Panel #4682
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/features.php
CHANGED
@@ -8904,4 +8904,16 @@ function ampforwp_yoast_home_robots($string) {
|
|
8904 |
$string= "index";
|
8905 |
}
|
8906 |
return $string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8907 |
}
|
8904 |
$string= "index";
|
8905 |
}
|
8906 |
return $string;
|
8907 |
+
}
|
8908 |
+
//Fallback added
|
8909 |
+
if( !function_exists( 'fifu_amp_url' ) ) {
|
8910 |
+
function fifu_amp_url($url, $width, $height) {
|
8911 |
+
$size = get_post_meta(ampforwp_get_the_ID(), 'fifu_image_dimension');
|
8912 |
+
if (!empty($size)) {
|
8913 |
+
$size = explode(';', $size[0]);
|
8914 |
+
$width = $size[0];
|
8915 |
+
$height = $size[1];
|
8916 |
+
}
|
8917 |
+
return array(0 => $url, 1 => $width, 2 => $height);
|
8918 |
+
}
|
8919 |
}
|