Version Description
(27th May 2020) = * Improvement: Added option to show instant article post according to updated date #4389 * Improvement: Added Transposh for AMP Extension #4481 * Fixed: Malformed url issue with WPRocket CDN #4342 * Fixed: Call to undefined method WPSEO_Options::get() #4494 * Fixed: Meta description is not working on homepage with yoast #4486 * Fixed: Home Page Meta Description Not Showing in Rankmath SEO #4491 * Fixed: DNS prefetch is disappearing after saving in safari #4470 * Fixed: Robots txt is not working when AMP takeover is enabled #4475 * Fixed: Canonical tag is missing when yoast is activated #4490 * Fixed: Custom taxonomy archive not working LSVR Knowledge Base #4478 * Fixed: Debug Notice trying to access array offset on value of type bool #4469
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.51 |
Comparing to | |
See all releases |
Code changes from version 1.0.50 to 1.0.51
- README.md +14 -14
- accelerated-moblie-pages.php +13 -2
- changelog.txt +13 -0
- feeds/instant-article-feed.php +3 -0
- images/transposh-for-amp.png +0 -0
- includes/features/functions.php +5 -2
- includes/options/admin-config.php +24 -0
- includes/options/redux-core/inc/fields/repeater/field_repeater.js +1 -1
- includes/options/redux-core/inc/fields/repeater/field_repeater.min.js +1 -1
- includes/thirdparty-compatibility.php +10 -0
- readme.txt +14 -14
- templates/features.php +18 -6
@@ -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.4
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,19 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
= 1.0.50 (20th May 2020) =
|
198 |
* Improvement: Added option to display the GDPR bar at top or bottom #4409
|
199 |
* Improvement: Added option to enable/disable the AMP from the categories or product or any custom taxonomy #4326
|
@@ -214,17 +227,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
214 |
= 1.0.49 (11th May 2020) =
|
215 |
* Fixed: Background color of the row is not working in the AMP Page Builder #4398
|
216 |
|
217 |
-
= 1.0.48 (9th May 2020) =
|
218 |
-
* Fixed: Title not showing with Yoast in some scenarios #4434
|
219 |
-
* Fixed: Canonical not showing with Yoast when AMP takeover is enabled #4434
|
220 |
-
* Fixed: Lightbox for images appearing even after disabling #4442
|
221 |
-
* Fixed: Menu and internal links are not working through Google CDN #4429
|
222 |
-
* Fixed: GDPR privacy text appearing on the top of the homepage #4435
|
223 |
-
* Fixed: Modules are not displaying in background video in pagebuilder #4398
|
224 |
-
* Fixed: Showing too many redirect in WPML with mobile redirection #4444
|
225 |
-
* Fixed: Detecting the Mobile redirection config to avoid manual tasks #4382
|
226 |
-
* Fixed: Pagination of category module not jumping on 1st & last links #4401
|
227 |
-
* Fixed: Notice added when category based is removed from Yoast #4437
|
228 |
-
* Fixed: Debug notices on the AMP pages #4440
|
229 |
-
|
230 |
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.4
|
7 |
+
Stable tag: 1.0.51
|
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.51 (27th May 2020) =
|
198 |
+
* Improvement: Added option to show instant article post according to updated date #4389
|
199 |
+
* Improvement: Added Transposh for AMP Extension #4481
|
200 |
+
* Fixed: Malformed url issue with WPRocket CDN #4342
|
201 |
+
* Fixed: Call to undefined method WPSEO_Options::get() #4494
|
202 |
+
* Fixed: Meta description is not working on homepage with yoast #4486
|
203 |
+
* Fixed: Home Page Meta Description Not Showing in Rankmath SEO #4491
|
204 |
+
* Fixed: DNS prefetch is disappearing after saving in safari #4470
|
205 |
+
* Fixed: Robots txt is not working when AMP takeover is enabled #4475
|
206 |
+
* Fixed: Canonical tag is missing when yoast is activated #4490
|
207 |
+
* Fixed: Custom taxonomy archive not working LSVR Knowledge Base #4478
|
208 |
+
* Fixed: Debug Notice trying to access array offset on value of type bool #4469
|
209 |
+
|
210 |
= 1.0.50 (20th May 2020) =
|
211 |
* Improvement: Added option to display the GDPR bar at top or bottom #4409
|
212 |
* Improvement: Added option to enable/disable the AMP from the categories or product or any custom taxonomy #4326
|
227 |
= 1.0.49 (11th May 2020) =
|
228 |
* Fixed: Background color of the row is not working in the AMP Page Builder #4398
|
229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
@@ -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.
|
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.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
@@ -246,6 +246,17 @@ function ampforwp_add_custom_rewrite_rules() {
|
|
246 |
'index.php?amp&post_type='.$post_type,
|
247 |
'top'
|
248 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
add_rewrite_rule(
|
250 |
$post_type.'\/(.+?)\/amp\/?$',
|
251 |
'index.php?amp&'.$post_type.'=$matches[1]',
|
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.51
|
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.51');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
246 |
'index.php?amp&post_type='.$post_type,
|
247 |
'top'
|
248 |
);
|
249 |
+
if ( class_exists( 'Lsvr_Permalink_Settings_Knowledge_Base' ) ) {
|
250 |
+
$lsvr_value = get_post_type_archive_link( 'lsvr_kba' );
|
251 |
+
$lsvr_value = explode("/",$lsvr_value);
|
252 |
+
$lsvr_value = array_filter($lsvr_value);
|
253 |
+
$lsvr_value = end($lsvr_value);
|
254 |
+
add_rewrite_rule(
|
255 |
+
$lsvr_value.'\/amp/?$',
|
256 |
+
'index.php?amp&post_type='.$post_type,
|
257 |
+
'top'
|
258 |
+
);
|
259 |
+
}
|
260 |
add_rewrite_rule(
|
261 |
$post_type.'\/(.+?)\/amp\/?$',
|
262 |
'index.php?amp&'.$post_type.'=$matches[1]',
|
@@ -1,5 +1,18 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.50 (20th May 2020) =
|
4 |
* Improvement: Added option to display the GDPR bar at top or bottom #4409
|
5 |
* Improvement: Added option to enable/disable the AMP from the categories or product or any custom taxonomy #4326
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.51 (27th May 2020) =
|
4 |
+
* Improvement: Added option to show instant article post according to updated date #4389
|
5 |
+
* Improvement: Added Transposh for AMP Extension #4481
|
6 |
+
* Fixed: Malformed url issue with WPRocket CDN #4342
|
7 |
+
* Fixed: Call to undefined method WPSEO_Options::get() #4494
|
8 |
+
* Fixed: Meta description is not working on homepage with yoast #4486
|
9 |
+
* Fixed: Home Page Meta Description Not Showing in Rankmath SEO #4491
|
10 |
+
* Fixed: DNS prefetch is disappearing after saving in safari #4470
|
11 |
+
* Fixed: Robots txt is not working when AMP takeover is enabled #4475
|
12 |
+
* Fixed: Canonical tag is missing when yoast is activated #4490
|
13 |
+
* Fixed: Custom taxonomy archive not working LSVR Knowledge Base #4478
|
14 |
+
* Fixed: Debug Notice trying to access array offset on value of type bool #4469
|
15 |
+
|
16 |
= 1.0.50 (20th May 2020) =
|
17 |
* Improvement: Added option to display the GDPR bar at top or bottom #4409
|
18 |
* Improvement: Added option to enable/disable the AMP from the categories or product or any custom taxonomy #4326
|
@@ -39,6 +39,9 @@ header('Content-Type: ' . esc_attr(feed_content_type('rss2')) . '; charset=' . e
|
|
39 |
),
|
40 |
)
|
41 |
);
|
|
|
|
|
|
|
42 |
if ( ampforwp_get_setting('hide-amp-ia-categories') ) {
|
43 |
$exclude_cats = array_values(array_filter(ampforwp_get_setting('hide-amp-ia-categories')));
|
44 |
$ia_args['category__not_in'] = $exclude_cats;
|
39 |
),
|
40 |
)
|
41 |
);
|
42 |
+
if(ampforwp_get_setting('fb-instant-article-order-by') == 2){
|
43 |
+
$ia_args['orderby'] = 'post_modified';
|
44 |
+
}
|
45 |
if ( ampforwp_get_setting('hide-amp-ia-categories') ) {
|
46 |
$exclude_cats = array_values(array_filter(ampforwp_get_setting('hide-amp-ia-categories')));
|
47 |
$ia_args['category__not_in'] = $exclude_cats;
|
Binary file
|
@@ -381,7 +381,10 @@ function ampforwp_generate_meta_desc($json=""){
|
|
381 |
// Rank Math SEO #2701
|
382 |
if ( defined( 'RANK_MATH_FILE' ) && 'rank_math' == ampforwp_get_setting('ampforwp-seo-selection') ) {
|
383 |
$rank_math_desc = RankMath\Post::get_meta( 'description', $post_id );
|
384 |
-
|
|
|
|
|
|
|
385 |
}
|
386 |
//Bridge Qode SEO Compatibility #2538
|
387 |
if ( function_exists('qode_header_meta') && 'bridge' == ampforwp_get_setting('ampforwp-seo-selection')){
|
@@ -1369,7 +1372,7 @@ function ampforwp_category_base_remove_notice(){
|
|
1369 |
if(true == ampforwp_get_setting('ampforwp-category-base-removel-link')){
|
1370 |
return;
|
1371 |
}
|
1372 |
-
if(class_exists('WPSEO_Options') && WPSEO_Options::get( 'stripcategorybase' ) == true){
|
1373 |
echo sprintf(('<div class="notice notice-error"><p>%s <a href="%s">%s</a>%s<a href="%s">%s</a></p></div>'), esc_html__('We have detected that you removed Category Base from Yoast SEO plugin but not from AMPforWP settings. Please','accelerated-mobile-pages'),
|
1374 |
esc_url('admin.php?page=amp_options&tab=17'),
|
1375 |
esc_html__('Click here','accelerated-mobile-pages'),
|
381 |
// Rank Math SEO #2701
|
382 |
if ( defined( 'RANK_MATH_FILE' ) && 'rank_math' == ampforwp_get_setting('ampforwp-seo-selection') ) {
|
383 |
$rank_math_desc = RankMath\Post::get_meta( 'description', $post_id );
|
384 |
+
if (ampforwp_is_home()) {
|
385 |
+
$rank_math_desc = $desc;
|
386 |
+
}
|
387 |
+
$desc = $rank_math_desc ? $rank_math_desc : $desc;
|
388 |
}
|
389 |
//Bridge Qode SEO Compatibility #2538
|
390 |
if ( function_exists('qode_header_meta') && 'bridge' == ampforwp_get_setting('ampforwp-seo-selection')){
|
1372 |
if(true == ampforwp_get_setting('ampforwp-category-base-removel-link')){
|
1373 |
return;
|
1374 |
}
|
1375 |
+
if(class_exists('WPSEO_Options') && method_exists('WPSEO_Options', 'get') && WPSEO_Options::get( 'stripcategorybase' ) == true ){
|
1376 |
echo sprintf(('<div class="notice notice-error"><p>%s <a href="%s">%s</a>%s<a href="%s">%s</a></p></div>'), esc_html__('We have detected that you removed Category Base from Yoast SEO plugin but not from AMPforWP settings. Please','accelerated-mobile-pages'),
|
1377 |
esc_url('admin.php?page=amp_options&tab=17'),
|
1378 |
esc_html__('Click here','accelerated-mobile-pages'),
|
@@ -675,6 +675,18 @@ $extension_listing_array = array(
|
|
675 |
'store_url'=>'https://accounts.ampforwp.com',
|
676 |
'is_activated'=>(is_plugin_active('polls-for-amp/polls-for-amp.php')? 1 : 2),
|
677 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
678 |
);
|
679 |
$viewAllExtensions = array(
|
680 |
'name'=>'View All Extensions',
|
@@ -2548,6 +2560,18 @@ Redux::setSection( $opt_name, array(
|
|
2548 |
'accordion-open'=> 1,
|
2549 |
'required' => array('fb-instant-article-switch', '=', 1),
|
2550 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2551 |
array(
|
2552 |
'id' => 'ampforwp-fb-instant-article-posts',
|
2553 |
'type' => 'text',
|
675 |
'store_url'=>'https://accounts.ampforwp.com',
|
676 |
'is_activated'=>(is_plugin_active('polls-for-amp/polls-for-amp.php')? 1 : 2),
|
677 |
),
|
678 |
+
array(
|
679 |
+
'name'=>'Transposh for AMP',
|
680 |
+
'class'=>'new-ext',
|
681 |
+
'desc'=>'This extension automatically adds Transposh WordPress Translation functionality in AMP',
|
682 |
+
'img_src'=>AMPFORWP_IMAGE_DIR . '/transposh-for-amp.png',
|
683 |
+
'price'=>'$19',
|
684 |
+
'url_link'=>'https://ampforwp.com/addons/transposh-for-amp/',
|
685 |
+
'plugin_active_path'=> 'transposh-for-amp/transposh-for-amp.php',
|
686 |
+
'item_name'=>'Transposh for AMP',
|
687 |
+
'store_url'=>'https://accounts.ampforwp.com',
|
688 |
+
'is_activated'=>(is_plugin_active('transposh-for-amp/transposh-for-amp.php')? 1 : 2),
|
689 |
+
),
|
690 |
);
|
691 |
$viewAllExtensions = array(
|
692 |
'name'=>'View All Extensions',
|
2560 |
'accordion-open'=> 1,
|
2561 |
'required' => array('fb-instant-article-switch', '=', 1),
|
2562 |
),
|
2563 |
+
array(
|
2564 |
+
'id' => 'fb-instant-article-order-by',
|
2565 |
+
'type' => 'select',
|
2566 |
+
'title' => esc_html__('Show instant article on', 'accelerated-mobile-pages'),
|
2567 |
+
'default' => '1',
|
2568 |
+
'tooltip-subtitle' => esc_html__('Select the type to show instant article on Publish Date/Updated Date.', 'accelerated-mobile-pages'),
|
2569 |
+
'options' => array(
|
2570 |
+
'1' => 'Published Date',
|
2571 |
+
'2' => 'Updated Date'
|
2572 |
+
),
|
2573 |
+
'required' => array('fb-instant-article-switch', '=', 1)
|
2574 |
+
),
|
2575 |
array(
|
2576 |
'id' => 'ampforwp-fb-instant-article-posts',
|
2577 |
'type' => 'text',
|
@@ -58,7 +58,7 @@
|
|
58 |
var new_input = $( '#' + id + ' li:last-child' ).clone();
|
59 |
el.find( '#' + id ).append( new_input );
|
60 |
el.find( '#' + id + ' li:last-child' ).removeAttr( 'style' );
|
61 |
-
el.find( '#' + id + ' li:last-child input[type="text"]' ).val( '
|
62 |
$('.redux-repeater-remove').removeAttr('style');
|
63 |
}
|
64 |
}
|
58 |
var new_input = $( '#' + id + ' li:last-child' ).clone();
|
59 |
el.find( '#' + id ).append( new_input );
|
60 |
el.find( '#' + id + ' li:last-child' ).removeAttr( 'style' );
|
61 |
+
el.find( '#' + id + ' li:last-child input[type="text"]' ).val('Enter URL Here');
|
62 |
$('.redux-repeater-remove').removeAttr('style');
|
63 |
}
|
64 |
}
|
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){"use strict";redux.field_objects=redux.field_objects||{},redux.field_objects.repeater=redux.field_objects.repeater||{},e(document).ready(function(){}),redux.field_objects.repeater.init=function(t){t||(t=e(document).find(".redux-container-repeater:visible")),e(t).each(function(){var t=e(this),r=t;t.hasClass("redux-field-container")||(r=t.parents(".redux-field-container:first")),r.is(":hidden")||r.hasClass("redux-field-init")&&(r.removeClass("redux-field-init"),t.find(".redux-repeater-remove").live("click",function(){redux_change(e(this)),e(this).prev('input[type="text"]').val(""),e(this).parent().parent().slideUp("medium",function(){e(this).remove(),1==e(".redux-repeater-remove").length&&e(".redux-repeater-remove").css({display:"none"})})}),t.find(".redux-repeater-add").click(function(){for(var r=parseInt(e(this).attr("data-add_number")),i=e(this).attr("data-id"),d=(e(this).attr("data-name"),0);d<r;d++){var n=e("#"+i+" li:last-child").clone();t.find("#"+i).append(n),t.find("#"+i+" li:last-child").removeAttr("style"),t.find("#"+i+' li:last-child input[type="text"]').val("Enter URL Here"),e(".redux-repeater-remove").removeAttr("style")}}))})}}(jQuery);
|
@@ -62,6 +62,16 @@ function ampforwp_thirdparty_compatibility(){
|
|
62 |
if(function_exists('tbn_theme_setup')){
|
63 |
remove_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
|
64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
function ampforwp_removing_sassy_social_share(){
|
67 |
return 1;
|
62 |
if(function_exists('tbn_theme_setup')){
|
63 |
remove_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
|
64 |
}
|
65 |
+
$yoast_noindex = $yoast_noindex_post = '';
|
66 |
+
$yoast_noindex = get_option( 'wpseo_titles' );
|
67 |
+
if(isset($yoast_noindex['noindex-post'])){
|
68 |
+
$yoast_noindex_post = $yoast_noindex['noindex-post'];
|
69 |
+
}
|
70 |
+
if (class_exists('WPSEO_Options') && 'yoast' == ampforwp_get_setting('ampforwp-seo-selection') && $yoast_noindex_post && WPSEO_Meta::get_value( 'meta-robots-noindex', ampforwp_get_the_ID()) != 2) {
|
71 |
+
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_canonical' );
|
72 |
+
}elseif (class_exists('WPSEO_Options') && 'yoast' == ampforwp_get_setting('ampforwp-seo-selection') && WPSEO_Meta::get_value( 'meta-robots-noindex', ampforwp_get_the_ID()) == 1) {
|
73 |
+
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_canonical' );
|
74 |
+
}
|
75 |
}
|
76 |
function ampforwp_removing_sassy_social_share(){
|
77 |
return 1;
|
@@ -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.4
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,19 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.0.50 (20th May 2020) =
|
195 |
* Improvement: Added option to display the GDPR bar at top or bottom #4409
|
196 |
* Improvement: Added option to enable/disable the AMP from the categories or product or any custom taxonomy #4326
|
@@ -211,17 +224,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
211 |
= 1.0.49 (11th May 2020) =
|
212 |
* Fixed: Background color of the row is not working in the AMP Page Builder #4398
|
213 |
|
214 |
-
= 1.0.48 (9th May 2020) =
|
215 |
-
* Fixed: Title not showing with Yoast in some scenarios #4434
|
216 |
-
* Fixed: Canonical not showing with Yoast when AMP takeover is enabled #4434
|
217 |
-
* Fixed: Lightbox for images appearing even after disabling #4442
|
218 |
-
* Fixed: Menu and internal links are not working through Google CDN #4429
|
219 |
-
* Fixed: GDPR privacy text appearing on the top of the homepage #4435
|
220 |
-
* Fixed: Modules are not displaying in background video in pagebuilder #4398
|
221 |
-
* Fixed: Showing too many redirect in WPML with mobile redirection #4444
|
222 |
-
* Fixed: Detecting the Mobile redirection config to avoid manual tasks #4382
|
223 |
-
* Fixed: Pagination of category module not jumping on 1st & last links #4401
|
224 |
-
* Fixed: Notice added when category based is removed from Yoast #4437
|
225 |
-
* Fixed: Debug notices on the AMP pages #4440
|
226 |
-
|
227 |
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.4
|
7 |
+
Stable tag: 1.0.51
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.51 (27th May 2020) =
|
195 |
+
* Improvement: Added option to show instant article post according to updated date #4389
|
196 |
+
* Improvement: Added Transposh for AMP Extension #4481
|
197 |
+
* Fixed: Malformed url issue with WPRocket CDN #4342
|
198 |
+
* Fixed: Call to undefined method WPSEO_Options::get() #4494
|
199 |
+
* Fixed: Meta description is not working on homepage with yoast #4486
|
200 |
+
* Fixed: Home Page Meta Description Not Showing in Rankmath SEO #4491
|
201 |
+
* Fixed: DNS prefetch is disappearing after saving in safari #4470
|
202 |
+
* Fixed: Robots txt is not working when AMP takeover is enabled #4475
|
203 |
+
* Fixed: Canonical tag is missing when yoast is activated #4490
|
204 |
+
* Fixed: Custom taxonomy archive not working LSVR Knowledge Base #4478
|
205 |
+
* Fixed: Debug Notice trying to access array offset on value of type bool #4469
|
206 |
+
|
207 |
= 1.0.50 (20th May 2020) =
|
208 |
* Improvement: Added option to display the GDPR bar at top or bottom #4409
|
209 |
* Improvement: Added option to enable/disable the AMP from the categories or product or any custom taxonomy #4326
|
224 |
= 1.0.49 (11th May 2020) =
|
225 |
* Fixed: Background color of the row is not working in the AMP Page Builder #4398
|
226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
@@ -3217,12 +3217,20 @@ function ampforwp_change_default_amp_page_meta() {
|
|
3217 |
add_action('amp_post_template_head','ampforwp_meta_description');
|
3218 |
function ampforwp_meta_description() {
|
3219 |
global $redux_builder_amp;
|
3220 |
-
if ( false == ampforwp_get_setting('ampforwp-seo-meta-desc') || 'rank_math' == ampforwp_get_setting('ampforwp-seo-selection') ) {
|
3221 |
return;
|
3222 |
}
|
3223 |
$desc = ampforwp_generate_meta_desc();
|
3224 |
if ( $desc && !class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration')) {
|
3225 |
echo '<meta name="description" content="'. esc_attr( convert_chars( stripslashes( $desc ) ) ) .'"/>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3226 |
}
|
3227 |
}
|
3228 |
// All in One Seo Compatibility #1557
|
@@ -5874,7 +5882,9 @@ function ampforwp_is_non_amp( $type="" ) {
|
|
5874 |
if ( is_feed() ) {
|
5875 |
return false;
|
5876 |
}
|
5877 |
-
|
|
|
|
|
5878 |
}elseif( (
|
5879 |
ampforwp_get_setting('amp-design-selector') == 4)
|
5880 |
&&
|
@@ -6740,7 +6750,7 @@ if ( ! function_exists('ampforwp_sd_feature_image_guidlines') ) {
|
|
6740 |
$image_width = 1280;
|
6741 |
$image_height = 720;
|
6742 |
$image = ampforwp_aq_resize( $metadata['image']['url'], $image_width, $image_height, true, false, true );
|
6743 |
-
$image_url = $image[0];
|
6744 |
$metadata['image']['url'] = $image_url;
|
6745 |
$metadata['image']['width'] = $image_width;
|
6746 |
$metadata['image']['height'] = $image_height;
|
@@ -8374,9 +8384,11 @@ function ampforwp_wp_rocket_compatibility($content){
|
|
8374 |
if(function_exists('rocket_activation')){
|
8375 |
$cdn_url = get_option('wp_rocket_settings');
|
8376 |
if($cdn_url['cdn'] == 1){
|
8377 |
-
$cdn_url
|
8378 |
-
|
8379 |
-
|
|
|
|
|
8380 |
}
|
8381 |
}
|
8382 |
return $content;
|
3217 |
add_action('amp_post_template_head','ampforwp_meta_description');
|
3218 |
function ampforwp_meta_description() {
|
3219 |
global $redux_builder_amp;
|
3220 |
+
if ( false == ampforwp_get_setting('ampforwp-seo-meta-desc') || ('rank_math' == ampforwp_get_setting('ampforwp-seo-selection') && is_singular() )) {
|
3221 |
return;
|
3222 |
}
|
3223 |
$desc = ampforwp_generate_meta_desc();
|
3224 |
if ( $desc && !class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration')) {
|
3225 |
echo '<meta name="description" content="'. esc_attr( convert_chars( stripslashes( $desc ) ) ) .'"/>';
|
3226 |
+
}else if(class_exists('Yoast\\WP\\SEO\\Integrations\\Front_End_Integration')){
|
3227 |
+
$yoast_desc = addslashes( strip_tags( WPSEO_Meta::get_value('metadesc', ampforwp_get_the_ID() ) ) );
|
3228 |
+
if ($yoast_desc && ampforwp_is_front_page()) {
|
3229 |
+
echo '<meta name="description" content="'. esc_attr( convert_chars( stripslashes( $yoast_desc ) ) ) .'"/>';
|
3230 |
+
}
|
3231 |
+
elseif ($desc && ampforwp_is_home() && 'page' == get_option( 'show_on_front') && empty(get_option( 'page_for_posts')) ){
|
3232 |
+
echo '<meta name="description" content="'. esc_attr( convert_chars( stripslashes( $desc ) ) ) .'"/>';
|
3233 |
+
}
|
3234 |
}
|
3235 |
}
|
3236 |
// All in One Seo Compatibility #1557
|
5882 |
if ( is_feed() ) {
|
5883 |
return false;
|
5884 |
}
|
5885 |
+
if(get_query_var( 'robots' )){
|
5886 |
+
return;
|
5887 |
+
}
|
5888 |
}elseif( (
|
5889 |
ampforwp_get_setting('amp-design-selector') == 4)
|
5890 |
&&
|
6750 |
$image_width = 1280;
|
6751 |
$image_height = 720;
|
6752 |
$image = ampforwp_aq_resize( $metadata['image']['url'], $image_width, $image_height, true, false, true );
|
6753 |
+
$image_url = isset( $image[0] ) ? $image[0] : '';
|
6754 |
$metadata['image']['url'] = $image_url;
|
6755 |
$metadata['image']['width'] = $image_width;
|
6756 |
$metadata['image']['height'] = $image_height;
|
8384 |
if(function_exists('rocket_activation')){
|
8385 |
$cdn_url = get_option('wp_rocket_settings');
|
8386 |
if($cdn_url['cdn'] == 1){
|
8387 |
+
if(isset($cdn_url["cdn_cnames"][0]) && $cdn_url["cdn_cnames"][0]!=''){
|
8388 |
+
$cdn_url = $cdn_url["cdn_cnames"][0];
|
8389 |
+
$content = preg_replace('/src="(.*?)\/\/(.*?)wp-content(.*?)"(.*?)>/', 'src="$1//'.$cdn_url.'/wp-content$3"$4>', $content);
|
8390 |
+
$content = preg_replace('/srcset="(.*?)\/\/(.*?)wp-content(.*?),(.*?)\/\/(.*?)wp-content(.*?),(.*?)\/\/(.*?)wp-content(.*?)"/', 'srcset="$1//'.$cdn_url.'/wp-content$3,$4//'.$cdn_url.'/wp-content$6,$7//'.$cdn_url.'/wp-content$9"', $content);
|
8391 |
+
}
|
8392 |
}
|
8393 |
}
|
8394 |
return $content;
|