AMP for WP – Accelerated Mobile Pages - Version 1.0.76.4

Version Description

(19th February 2021) = * Fixed: AMP front page not working after update #4892

Download this release

Release Info

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

Code changes from version 1.0.76.3 to 1.0.76.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.6
7
- Stable tag: 1.0.76.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 1.0.76.3 (19th February 2021) =
197
  * Improvement: Added the Smart Mag Theme review schema #4898
198
  * Improvement: Added disable right click for copy protection #4877
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 1.0.76.4
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.76.4 (19th February 2021) =
197
+ * Fixed: AMP front page not working after update #4892
198
+
199
  = 1.0.76.3 (19th February 2021) =
200
  * Improvement: Added the Smart Mag Theme review schema #4898
201
  * Improvement: Added disable right click for copy protection #4877
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.76.3
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.76.3');
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.76.4
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.76.4');
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,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 1.0.76.3 (19th February 2021) =
4
  * Improvement: Added the Smart Mag Theme review schema #4898
5
  * Improvement: Added disable right click for copy protection #4877
1
  == Changelog ==
2
 
3
+ = 1.0.76.4 (19th February 2021) =
4
+ * Fixed: AMP front page not working after update #4892
5
+
6
  = 1.0.76.3 (19th February 2021) =
7
  * Improvement: Added the Smart Mag Theme review schema #4898
8
  * Improvement: Added disable right click for copy protection #4877
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.6
7
- Stable tag: 1.0.76.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
193
  = 1.0.76.3 (19th February 2021) =
194
  * Improvement: Added the Smart Mag Theme review schema #4898
195
  * Improvement: Added disable right click for copy protection #4877
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 1.0.76.4
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.76.4 (19th February 2021) =
194
+ * Fixed: AMP front page not working after update #4892
195
+
196
  = 1.0.76.3 (19th February 2021) =
197
  * Improvement: Added the Smart Mag Theme review schema #4898
198
  * Improvement: Added disable right click for copy protection #4877
templates/features.php CHANGED
@@ -4160,10 +4160,6 @@ function ampforwp_post_paginated_content($content){
4160
  if(preg_match('/<a(.*?)data-pin-do="embedPin"(.*?)href="(.*?)"><\/a>/', $content)){
4161
  $content = preg_replace('/<a(.*?)data-pin-do="embedPin"(.*?)href="(.*?)"><\/a>/', '<amp-pinterest width="250" height="500" data-do="embedPin" data-url="$3"></amp-pinterest>', $content);
4162
  }
4163
- if (ampforwp_is_front_page()) {
4164
- $id = ampforwp_get_the_ID();
4165
- $content = get_post_field( 'post_content', $id);
4166
- }
4167
  if ( is_singular() || ampforwp_is_front_page() ){
4168
  global $redux_builder_amp, $page, $multipage;
4169
  $ampforwp_new_content = $ampforwp_the_content = $checker = '';
4160
  if(preg_match('/<a(.*?)data-pin-do="embedPin"(.*?)href="(.*?)"><\/a>/', $content)){
4161
  $content = preg_replace('/<a(.*?)data-pin-do="embedPin"(.*?)href="(.*?)"><\/a>/', '<amp-pinterest width="250" height="500" data-do="embedPin" data-url="$3"></amp-pinterest>', $content);
4162
  }
 
 
 
 
4163
  if ( is_singular() || ampforwp_is_front_page() ){
4164
  global $redux_builder_amp, $page, $multipage;
4165
  $ampforwp_new_content = $ampforwp_the_content = $checker = '';