AMP for WP – Accelerated Mobile Pages - Version 1.0.77.34

Version Description

(11th January 2022) = * Fixed: External stylesheet Errors using Vinkmag theme #5189 * Fixed: AMP Takeover functionality is not working on the blog posts #5188 * Fixed: Replace webvitalsdev to Microwork #5183 * Fixed: Wrong Notice for first time installation #5184

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 1.0.77.34
Comparing to
See all releases

Code changes from version 1.0.77.33 to 1.0.77.34

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.33
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -197,16 +197,17 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
197
 
198
  == Changelog ==
199
 
200
- 1.0.77.33 (15th December 2021) =
 
 
 
 
 
 
201
  * Fixed: Code improvements in AMP options panel #5179
202
  * Fixed: Stylesheet errors when using Qoxag theme #5177
203
 
204
- 1.0.77.32 (11th December 2021) =
205
  * Fixed: Code improvements in AMP pagebuilder #5179
206
 
207
- 1.0.77.31 (7th December 2021) =
208
- * Fixed: Uncaught ValueError - DOMDocument::loadHTML() Error #5174
209
- * Fixed: PHP Notice: Undefined index: rgba #5175
210
- * Fixed: Optional added for font display in google fonts #5176
211
-
212
  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.34
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.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
203
+ * Fixed: Replace webvitalsdev to Microwork #5183
204
+ * Fixed: Wrong Notice for first time installation #5184
205
+
206
+ = 1.0.77.33 (15th December 2021) =
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)
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.33
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.33');
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.34
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.34');
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,18 +1,24 @@
1
  == Changelog ==
2
 
3
- 1.0.77.33 (15th December 2021) =
 
 
 
 
 
 
4
  * Fixed: Code improvements in AMP options panel #5179
5
  * Fixed: Stylesheet errors when using Qoxag theme #5177
6
 
7
- 1.0.77.32 (11th December 2021) =
8
  * Fixed: Code improvements in AMP pagebuilder #5179
9
 
10
- 1.0.77.31 (7th December 2021) =
11
  * Fixed: Uncaught ValueError - DOMDocument::loadHTML() Error #5174
12
  * Fixed: PHP Notice: Undefined index: rgba #5175
13
  * Fixed: Optional added for font display in google fonts #5176
14
 
15
- 1.0.77.30 (25th November 2021) =
16
  * Improvements: Added Filter to modify title in AMP #5170
17
  * Fixed: Whitelisted amp-render tag #5171
18
  * Fixed: Featured image not appearing in loop with Offload Media Lite #5153
@@ -20,12 +26,12 @@
20
  * Fixed: Webp images not appearing in preload with WEBP express plugin #5165
21
  * Fixed: pagination 404 issue with infinite scroll #5167
22
 
23
- 1.0.77.29 (28TH October 2021) =
24
  Improvements: Search results opens directly in Google search in AMP #5161
25
  Fixed: Undefined variable - pathExploded debug notice #5160
26
  Fixed: ID has been getting removed from the amp-img tag #5163
27
 
28
- 1.0.77.28 (28TH October 2021) =
29
  Improvements: License code improved #5151
30
  Fixed: Default Gravatar not appearing with FV Gravatar Cache #5149
31
  Fixed: Featured image not appearing with Offload Media Lite #5153
@@ -33,10 +39,10 @@ Fixed: Function name updated in the seo framework #5155
33
  Fixed: Lifetime license key is showing as expired in admin panel #5156
34
  Fixed: Video is not loading when created by slider revolution with divi #5159
35
 
36
- 1.0.77.27 (21TH October 2021) =
37
  Improvements: Added AdPushup Support in AMP #5144
38
 
39
- 1.0.77.26 (20TH October 2021) =
40
  Improvements: Added FV Gravatar Cache Compatibility in AMP #5149
41
  Fixed: Images not loading when destination structure is document root in WebP Express #5150
42
 
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
6
+ * Fixed: Replace webvitalsdev to Microwork #5183
7
+ * Fixed: Wrong Notice for first time installation #5184
8
+
9
+ = 1.0.77.33 (15th December 2021) =
10
  * Fixed: Code improvements in AMP options panel #5179
11
  * Fixed: Stylesheet errors when using Qoxag theme #5177
12
 
13
+ = 1.0.77.32 (11th December 2021) =
14
  * Fixed: Code improvements in AMP pagebuilder #5179
15
 
16
+ = 1.0.77.31 (7th December 2021) =
17
  * Fixed: Uncaught ValueError - DOMDocument::loadHTML() Error #5174
18
  * Fixed: PHP Notice: Undefined index: rgba #5175
19
  * Fixed: Optional added for font display in google fonts #5176
20
 
21
+ = 1.0.77.30 (25th November 2021) =
22
  * Improvements: Added Filter to modify title in AMP #5170
23
  * Fixed: Whitelisted amp-render tag #5171
24
  * Fixed: Featured image not appearing in loop with Offload Media Lite #5153
26
  * Fixed: Webp images not appearing in preload with WEBP express plugin #5165
27
  * Fixed: pagination 404 issue with infinite scroll #5167
28
 
29
+ = 1.0.77.29 (28TH October 2021) =
30
  Improvements: Search results opens directly in Google search in AMP #5161
31
  Fixed: Undefined variable - pathExploded debug notice #5160
32
  Fixed: ID has been getting removed from the amp-img tag #5163
33
 
34
+ = 1.0.77.28 (28TH October 2021) =
35
  Improvements: License code improved #5151
36
  Fixed: Default Gravatar not appearing with FV Gravatar Cache #5149
37
  Fixed: Featured image not appearing with Offload Media Lite #5153
39
  Fixed: Lifetime license key is showing as expired in admin panel #5156
40
  Fixed: Video is not loading when created by slider revolution with divi #5159
41
 
42
+ = 1.0.77.27 (21TH October 2021) =
43
  Improvements: Added AdPushup Support in AMP #5144
44
 
45
+ = 1.0.77.26 (20TH October 2021) =
46
  Improvements: Added FV Gravatar Cache Compatibility in AMP #5149
47
  Fixed: Images not loading when destination structure is document root in WebP Express #5150
48
 
includes/features/functions.php CHANGED
@@ -1499,7 +1499,7 @@ function ampforwp_internal_feedback_notice(){
1499
  $install_date = date("m-d-Y", $install_date);
1500
  }
1501
  $activation_never = get_option("ampforwp_feedback_remove_notice");
1502
- if (strtotime($install_date) < strtotime('1 month ago') && $activation_never !='remove') {?>
1503
  <div class="updated notice ampforwp_remove_notice" style="box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);background-color:white;">
1504
  <p>
1505
  <?php esc_html_e('Awesome, you\'ve been using AMPforWP for more than 1 month. May I ask you to give it a 5-star rating on WordPress.org?', 'accelerated-mobile-pages'); ?></br>
1499
  $install_date = date("m-d-Y", $install_date);
1500
  }
1501
  $activation_never = get_option("ampforwp_feedback_remove_notice");
1502
+ if (strtotime($install_date) < strtotime('-30 days') && $activation_never !='remove') {?>
1503
  <div class="updated notice ampforwp_remove_notice" style="box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);background-color:white;">
1504
  <p>
1505
  <?php esc_html_e('Awesome, you\'ve been using AMPforWP for more than 1 month. May I ask you to give it a 5-star rating on WordPress.org?', 'accelerated-mobile-pages'); ?></br>
includes/options/redux-core/assets/css/redux-admin.css CHANGED
@@ -1147,11 +1147,11 @@ background: linear-gradient(45deg, #E47B49 0%, #ea4c89 100%);
1147
  }
1148
  .custom_url a{
1149
  text-decoration: none;
1150
- background: #fff;
1151
- color: #4452a7;
1152
  padding: 6px 10px;
1153
  border-radius: 20px;
1154
- border: 1px solid #ddd;
 
 
1155
  }
1156
  .custom_url a:hover{
1157
  text-decoration: underline;
1147
  }
1148
  .custom_url a{
1149
  text-decoration: none;
 
 
1150
  padding: 6px 10px;
1151
  border-radius: 20px;
1152
+ background: #4452a7;
1153
+ color: #fff;
1154
+ border: 0;
1155
  }
1156
  .custom_url a:hover{
1157
  text-decoration: underline;
includes/options/redux-core/templates/panel/footer.tpl.php CHANGED
@@ -52,8 +52,8 @@ if ( ! defined( 'ABSPATH' ) ) {
52
  <?php } ?>
53
 
54
  </div>
55
- <?php } $url = 'https://webvitalsdev.com/';?>
56
- <div class='custom_url'><a href="<?php echo esc_url($url);?>" target="_blank"><?php echo "The New Core Web Vitals Project" ?></a></div>
57
 
58
  <div class="redux-action_bar">
59
  <span class="spinner"></span>
52
  <?php } ?>
53
 
54
  </div>
55
+ <?php } $url = 'https://microwork.dev/';?>
56
+ <div class='custom_url'><a href="<?php echo esc_url($url);?>" target="_blank"><?php echo "Introducing MicroWork.dev" ?></a></div>
57
 
58
  <div class="redux-action_bar">
59
  <span class="spinner"></span>
includes/thirdparty-compatibility.php CHANGED
@@ -78,6 +78,9 @@ function ampforwp_thirdparty_compatibility(){
78
  if(function_exists('megashop_setup')){
79
  remove_filter( 'wp_nav_menu_args', 'TT_nav_menu_args' );
80
  }
 
 
 
81
  if(function_exists('zeen_lazyload_images')){
82
  add_filter('zeen_lazy_embedded_images','ampforwp_zeen_lazyload');
83
  }
78
  if(function_exists('megashop_setup')){
79
  remove_filter( 'wp_nav_menu_args', 'TT_nav_menu_args' );
80
  }
81
+ if (function_exists('vinkmag_action_setup')) {
82
+ remove_action( 'amp_post_template_head', 'vinkmag_amp_fonts', 1 );
83
+ }
84
  if(function_exists('zeen_lazyload_images')){
85
  add_filter('zeen_lazy_embedded_images','ampforwp_zeen_lazyload');
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.8
7
- Stable tag: 1.0.77.33
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,16 +194,17 @@ You can contact us from [here](https://ampforwp.com/contact/)
194
 
195
  == Changelog ==
196
 
197
- 1.0.77.33 (15th December 2021) =
 
 
 
 
 
 
198
  * Fixed: Code improvements in AMP options panel #5179
199
  * Fixed: Stylesheet errors when using Qoxag theme #5177
200
 
201
- 1.0.77.32 (11th December 2021) =
202
  * Fixed: Code improvements in AMP pagebuilder #5179
203
 
204
- 1.0.77.31 (7th December 2021) =
205
- * Fixed: Uncaught ValueError - DOMDocument::loadHTML() Error #5174
206
- * Fixed: PHP Notice: Undefined index: rgba #5175
207
- * Fixed: Optional added for font display in google fonts #5176
208
-
209
  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.34
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.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
200
+ * Fixed: Replace webvitalsdev to Microwork #5183
201
+ * Fixed: Wrong Notice for first time installation #5184
202
+
203
+ = 1.0.77.33 (15th December 2021) =
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)
templates/features.php CHANGED
@@ -6233,6 +6233,11 @@ function ampforwp_is_non_amp( $type="" ) {
6233
  if ( is_page() && false == ampforwp_get_setting('amp-on-off-for-all-pages') ) {
6234
  return false;
6235
  }
 
 
 
 
 
6236
  // Homepage
6237
  if ( is_home() && false == ampforwp_get_setting('ampforwp-homepage-on-off-support') ) {
6238
  return false;
6233
  if ( is_page() && false == ampforwp_get_setting('amp-on-off-for-all-pages') ) {
6234
  return false;
6235
  }
6236
+ //Blogpage
6237
+ $page_for_posts = intval(get_option( 'page_for_posts' ));
6238
+ if ( $page_for_posts == ampforwp_get_the_ID() ) {
6239
+ return true;
6240
+ }
6241
  // Homepage
6242
  if ( is_home() && false == ampforwp_get_setting('ampforwp-homepage-on-off-support') ) {
6243
  return false;