Version Description
(21th January 2022) = * Fixed: Embed URLs not working with Amp takeover active #5193 * Fixed: Need to change Google Fonts display to optional #5191 * Fixed: Need to make compatibility of amp analytics in infinite scroll #5194 * Fixed: Current year is not showing in design 1,2,3 #5190 * Fixed: VKontakte social media not working in social media profile links #5196 * Fixed: PHP Notice: tag_rewrite_rules is deprecated #5197
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.35 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.34 to 1.0.77.35
- README.md +9 -4
- accelerated-moblie-pages.php +2 -2
- base_remover/base_remover.php +1 -1
- changelog.txt +8 -0
- includes/features/analytics/analytics-functions.php +20 -0
- includes/redirect.php +3 -1
- readme.txt +9 -4
- templates/design-manager/design-1/footer.php +1 -1
- templates/design-manager/design-2/footer.php +1 -1
- templates/design-manager/design-3/footer.php +1 -1
- templates/design-manager/swift/style.php +1 -1
- templates/features.php +1 -1
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.34 (11th January 2022) =
|
201 |
* Fixed: External stylesheet Errors using Vinkmag theme #5189
|
202 |
* Fixed: AMP Takeover functionality is not working on the blog posts #5188
|
@@ -207,7 +215,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
207 |
* Fixed: Code improvements in AMP options panel #5179
|
208 |
* Fixed: Stylesheet errors when using Qoxag theme #5177
|
209 |
|
210 |
-
= 1.0.77.32 (11th December 2021) =
|
211 |
-
* Fixed: Code improvements in AMP pagebuilder #5179
|
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.35
|
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.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
|
203 |
+
* Fixed: Need to make compatibility of amp analytics in infinite scroll #5194
|
204 |
+
* Fixed: Current year is not showing in design 1,2,3 #5190
|
205 |
+
* Fixed: VKontakte social media not working in social media profile links #5196
|
206 |
+
* Fixed: PHP Notice: tag_rewrite_rules is deprecated #5197
|
207 |
+
|
208 |
= 1.0.77.34 (11th January 2022) =
|
209 |
* Fixed: External stylesheet Errors using Vinkmag theme #5189
|
210 |
* Fixed: AMP Takeover functionality is not working on the blog posts #5188
|
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)
|
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.35
|
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.35');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
base_remover/base_remover.php
CHANGED
@@ -50,7 +50,7 @@ function ampforwp_url_base_rewrite_rules(){
|
|
50 |
add_action( 'created_post_tag', 'amp_flush_rewrite_rules' , 999 );
|
51 |
add_action( 'edited_post_tag', 'amp_flush_rewrite_rules', 999 );
|
52 |
add_action( 'delete_post_tag', 'amp_flush_rewrite_rules', 999 );
|
53 |
-
add_filter( '
|
54 |
}elseif( $tagBaseRewrite === '0' ) {
|
55 |
remove_action( 'created_post_tag', 'amp_flush_rewrite_rules' , 999 );
|
56 |
remove_action( 'edited_post_tag', 'amp_flush_rewrite_rules', 999 );
|
50 |
add_action( 'created_post_tag', 'amp_flush_rewrite_rules' , 999 );
|
51 |
add_action( 'edited_post_tag', 'amp_flush_rewrite_rules', 999 );
|
52 |
add_action( 'delete_post_tag', 'amp_flush_rewrite_rules', 999 );
|
53 |
+
add_filter( 'post_tag_rewrite_rules', 'ampforwp_tag_url_rewrite_rules' );
|
54 |
}elseif( $tagBaseRewrite === '0' ) {
|
55 |
remove_action( 'created_post_tag', 'amp_flush_rewrite_rules' , 999 );
|
56 |
remove_action( 'edited_post_tag', 'amp_flush_rewrite_rules', 999 );
|
changelog.txt
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.77.34 (11th January 2022) =
|
4 |
* Fixed: External stylesheet Errors using Vinkmag theme #5189
|
5 |
* Fixed: AMP Takeover functionality is not working on the blog posts #5188
|
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
|
6 |
+
* Fixed: Need to make compatibility of amp analytics in infinite scroll #5194
|
7 |
+
* Fixed: Current year is not showing in design 1,2,3 #5190
|
8 |
+
* Fixed: VKontakte social media not working in social media profile links #5196
|
9 |
+
* Fixed: PHP Notice: tag_rewrite_rules is deprecated #5197
|
10 |
+
|
11 |
= 1.0.77.34 (11th January 2022) =
|
12 |
* Fixed: External stylesheet Errors using Vinkmag theme #5189
|
13 |
* Fixed: AMP Takeover functionality is not working on the blog posts #5188
|
includes/features/analytics/analytics-functions.php
CHANGED
@@ -29,6 +29,26 @@ function ampforwp_analytics() {
|
|
29 |
'request'=>'pageview'
|
30 |
)
|
31 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
if ( true == ampforwp_get_setting('ampforwp-ga-field-anonymizeIP')) {
|
33 |
$ga_fields['vars']['anonymizeIP'] = 'true';
|
34 |
}
|
29 |
'request'=>'pageview'
|
30 |
)
|
31 |
);
|
32 |
+
if (true == ampforwp_get_setting('ampforwp-infinite-scroll')) {
|
33 |
+
$url = ampforwp_url_controller(get_the_permalink());
|
34 |
+
$ga_fields['requests'] = array(
|
35 |
+
'nextpage' => esc_url($url) ,
|
36 |
+
);
|
37 |
+
$ga_fields['triggers'] = array(
|
38 |
+
'trackPageview'=> array(
|
39 |
+
'on'=>'visible',
|
40 |
+
'request'=>'pageview'
|
41 |
+
),
|
42 |
+
'trackScrollThrough'=> array(
|
43 |
+
'on'=>'amp-next-page-scroll',
|
44 |
+
'request'=>'nextpage'
|
45 |
+
),
|
46 |
+
'trackClickThrough'=> array(
|
47 |
+
'on'=>'amp-next-page-click',
|
48 |
+
'request'=>'nextpage'
|
49 |
+
)
|
50 |
+
);
|
51 |
+
}
|
52 |
if ( true == ampforwp_get_setting('ampforwp-ga-field-anonymizeIP')) {
|
53 |
$ga_fields['vars']['anonymizeIP'] = 'true';
|
54 |
}
|
includes/redirect.php
CHANGED
@@ -186,7 +186,9 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
|
|
186 |
if ( is_feed() ) {
|
187 |
return;
|
188 |
}
|
189 |
-
|
|
|
|
|
190 |
// Homepage
|
191 |
if ( ( ampforwp_is_home() || $current_location == $home_url ) && ! $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
|
192 |
return;
|
186 |
if ( is_feed() ) {
|
187 |
return;
|
188 |
}
|
189 |
+
if ( function_exists('is_embed') && is_embed() ){
|
190 |
+
return;
|
191 |
+
}
|
192 |
// Homepage
|
193 |
if ( ( ampforwp_is_home() || $current_location == $home_url ) && ! $redux_builder_amp['ampforwp-homepage-on-off-support'] ) {
|
194 |
return;
|
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.34 (11th January 2022) =
|
198 |
* Fixed: External stylesheet Errors using Vinkmag theme #5189
|
199 |
* Fixed: AMP Takeover functionality is not working on the blog posts #5188
|
@@ -204,7 +212,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
204 |
* Fixed: Code improvements in AMP options panel #5179
|
205 |
* Fixed: Stylesheet errors when using Qoxag theme #5177
|
206 |
|
207 |
-
= 1.0.77.32 (11th December 2021) =
|
208 |
-
* Fixed: Code improvements in AMP pagebuilder #5179
|
209 |
-
|
210 |
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.35
|
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.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
|
200 |
+
* Fixed: Need to make compatibility of amp analytics in infinite scroll #5194
|
201 |
+
* Fixed: Current year is not showing in design 1,2,3 #5190
|
202 |
+
* Fixed: VKontakte social media not working in social media profile links #5196
|
203 |
+
* Fixed: PHP Notice: tag_rewrite_rules is deprecated #5197
|
204 |
+
|
205 |
= 1.0.77.34 (11th January 2022) =
|
206 |
* Fixed: External stylesheet Errors using Vinkmag theme #5189
|
207 |
* Fixed: AMP Takeover functionality is not working on the blog posts #5188
|
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)
|
templates/design-manager/design-1/footer.php
CHANGED
@@ -50,7 +50,7 @@ wp_reset_postdata(); ?>
|
|
50 |
if (function_exists('pll__')) {
|
51 |
echo strip_tags( pll__(ampforwp_get_setting('amp-translator-footer-text')) ,$allowed_tags );
|
52 |
}else {
|
53 |
-
echo strip_tags( ampforwp_translation(ampforwp_get_setting('amp-translator-footer-text'), 'All Rights Reserved') ,$allowed_tags );
|
54 |
}?></p>
|
55 |
<?php
|
56 |
if ( true == ampforwp_get_setting('amp-footer-link-non-amp-page') ) { ?><p class="rightslink back-to-top"><?php
|
50 |
if (function_exists('pll__')) {
|
51 |
echo strip_tags( pll__(ampforwp_get_setting('amp-translator-footer-text')) ,$allowed_tags );
|
52 |
}else {
|
53 |
+
echo strip_tags( ampforwp_translation(do_shortcode(ampforwp_get_setting('amp-translator-footer-text')), 'All Rights Reserved') ,$allowed_tags );
|
54 |
}?></p>
|
55 |
<?php
|
56 |
if ( true == ampforwp_get_setting('amp-footer-link-non-amp-page') ) { ?><p class="rightslink back-to-top"><?php
|
templates/design-manager/design-2/footer.php
CHANGED
@@ -51,7 +51,7 @@ global $redux_builder_amp;
|
|
51 |
if (function_exists('pll__')) {
|
52 |
echo strip_tags( pll__(ampforwp_get_setting('amp-translator-footer-text')) ,$allowed_tags );
|
53 |
}else {
|
54 |
-
echo strip_tags( ampforwp_translation(ampforwp_get_setting('amp-translator-footer-text'), 'All Rights Reserved') ,$allowed_tags );
|
55 |
}
|
56 |
?>
|
57 |
<?php do_action('amp_footer_link'); ?>
|
51 |
if (function_exists('pll__')) {
|
52 |
echo strip_tags( pll__(ampforwp_get_setting('amp-translator-footer-text')) ,$allowed_tags );
|
53 |
}else {
|
54 |
+
echo strip_tags( ampforwp_translation(do_shortcode(ampforwp_get_setting('amp-translator-footer-text')), 'All Rights Reserved') ,$allowed_tags );
|
55 |
}
|
56 |
?>
|
57 |
<?php do_action('amp_footer_link'); ?>
|
templates/design-manager/design-3/footer.php
CHANGED
@@ -102,7 +102,7 @@ global $redux_builder_amp;
|
|
102 |
if (function_exists('pll__')) {
|
103 |
echo strip_tags( pll__(ampforwp_get_setting('amp-translator-footer-text')) ,$allowed_tags );
|
104 |
}else {
|
105 |
-
echo strip_tags( ampforwp_translation(ampforwp_get_setting('amp-translator-footer-text'), 'All Rights Reserved') ,$allowed_tags );
|
106 |
}
|
107 |
if ( '1' == $redux_builder_amp['amp-footer-link-non-amp-page'] ) {
|
108 |
if ( $redux_builder_amp['amp-translator-footer-text'] ) { ?> | <?php ampforwp_view_nonamp(); }
|
102 |
if (function_exists('pll__')) {
|
103 |
echo strip_tags( pll__(ampforwp_get_setting('amp-translator-footer-text')) ,$allowed_tags );
|
104 |
}else {
|
105 |
+
echo strip_tags( ampforwp_translation(do_shortcode(ampforwp_get_setting('amp-translator-footer-text')), 'All Rights Reserved') ,$allowed_tags );
|
106 |
}
|
107 |
if ( '1' == $redux_builder_amp['amp-footer-link-non-amp-page'] ) {
|
108 |
if ( $redux_builder_amp['amp-translator-footer-text'] ) { ?> | <?php ampforwp_view_nonamp(); }
|
templates/design-manager/swift/style.php
CHANGED
@@ -1212,7 +1212,7 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
|
|
1212 |
}
|
1213 |
<?php }
|
1214 |
if($redux_builder_amp['enbl-vk']){?>
|
1215 |
-
.ss-ic .s_vk:after
|
1216 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
1217 |
content: "\e944";
|
1218 |
<?php }
|
1212 |
}
|
1213 |
<?php }
|
1214 |
if($redux_builder_amp['enbl-vk']){?>
|
1215 |
+
.ss-ic .s_vk:after,.s_vk:after{
|
1216 |
<?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
|
1217 |
content: "\e944";
|
1218 |
<?php }
|
templates/features.php
CHANGED
@@ -6123,7 +6123,7 @@ if ( ! function_exists( 'ampforwp_google_fonts_generator' ) ) {
|
|
6123 |
}
|
6124 |
$font_output .= "@font-face { ";
|
6125 |
$font_output .= "font-family: " . esc_attr(ampforwp_get_setting('amp_font_selector_content_single')). ';' ;
|
6126 |
-
$font_output .= "font-display:
|
6127 |
$font_output .= "font-style: " . esc_attr($font_style) . ';';
|
6128 |
$font_output .= "font-weight: " . esc_attr($font_weight) . ';' ;
|
6129 |
$font_output .= "src: local('". esc_attr(ampforwp_get_setting('amp_font_selector_content_single'))." ".esc_attr($font_local_weight)." ".esc_attr($font_local_type)."'), local('". esc_attr(ampforwp_get_setting('amp_font_selector_content_single'))."-".esc_attr($font_local_weight).$font_local_type."'), url(" .esc_url(str_replace("http://", "https://", $font_data->files->$value)) . ');' ;
|
6123 |
}
|
6124 |
$font_output .= "@font-face { ";
|
6125 |
$font_output .= "font-family: " . esc_attr(ampforwp_get_setting('amp_font_selector_content_single')). ';' ;
|
6126 |
+
$font_output .= "font-display: optional".';';
|
6127 |
$font_output .= "font-style: " . esc_attr($font_style) . ';';
|
6128 |
$font_output .= "font-weight: " . esc_attr($font_weight) . ';' ;
|
6129 |
$font_output .= "src: local('". esc_attr(ampforwp_get_setting('amp_font_selector_content_single'))." ".esc_attr($font_local_weight)." ".esc_attr($font_local_type)."'), local('". esc_attr(ampforwp_get_setting('amp_font_selector_content_single'))."-".esc_attr($font_local_weight).$font_local_type."'), url(" .esc_url(str_replace("http://", "https://", $font_data->files->$value)) . ');' ;
|