AMP for WP – Accelerated Mobile Pages - Version 0.9.97.51.2

Version Description

(10th May 2019) = * Fixed: AddThis is causing validation error after Update #3068

Download this release

Release Info

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

Code changes from version 0.9.97.51.1 to 0.9.97.51.2

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.1.1
7
- Stable tag: 0.9.97.51.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -183,6 +183,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
183
 
184
  == Changelog ==
185
 
 
 
 
186
  = 0.9.97.51.1 (7th May 2019) =
187
  * Fixed: Can’t use function return value in write context #3155
188
  * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.1.1
7
+ Stable tag: 0.9.97.51.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
183
 
184
  == Changelog ==
185
 
186
+ = 0.9.97.51.2 (10th May 2019) =
187
+ * Fixed: AddThis is causing validation error after Update #3068
188
+
189
  = 0.9.97.51.1 (7th May 2019) =
190
  * Fixed: Can’t use function return value in write context #3155
191
  * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154
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: 0.9.97.51.1
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','0.9.97.51.1');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  // any changes to AMP_QUERY_VAR should be refelected here
26
  function ampforwp_generate_endpoint(){
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: 0.9.97.51.2
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','0.9.97.51.2');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  // any changes to AMP_QUERY_VAR should be refelected here
26
  function ampforwp_generate_endpoint(){
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 0.9.97.51.1 (7th May 2019) =
4
  * Fixed: Can’t use function return value in write context #3155
5
  * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154
1
  == Changelog ==
2
 
3
+ = 0.9.97.51.2 (10th May 2019) =
4
+ * Fixed: AddThis is causing validation error after Update #3068
5
+
6
  = 0.9.97.51.1 (7th May 2019) =
7
  * Fixed: Can’t use function return value in write context #3155
8
  * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154
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.1.1
7
- Stable tag: 0.9.97.51.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -184,6 +184,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
184
 
185
  == Changelog ==
186
 
 
 
 
187
  = 0.9.97.51.1 (7th May 2019) =
188
  * Fixed: Can’t use function return value in write context #3155
189
  * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.1.1
7
+ Stable tag: 0.9.97.51.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
184
 
185
  == Changelog ==
186
 
187
+ = 0.9.97.51.2 (10th May 2019) =
188
+ * Fixed: AddThis is causing validation error after Update #3068
189
+
190
  = 0.9.97.51.1 (7th May 2019) =
191
  * Fixed: Can’t use function return value in write context #3155
192
  * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154
templates/features.php CHANGED
@@ -6742,8 +6742,8 @@ function ampforwp_ivory_search_css(){
6742
  add_filter('amp_post_template_data','ampforwp_register_addthis_script', 20);
6743
  function ampforwp_register_addthis_script( $data ){
6744
  global $redux_builder_amp;
6745
- if( ( ampforwp_get_setting('enable-add-this-option') && is_single() )|| (is_page() && ampforwp_get_setting('ampforwp-page-social')) ) {
6746
- if ( empty( $data['amp_component_scripts']['amp-addthis'] ) ) {
6747
  $data['amp_component_scripts']['amp-addthis'] = 'https://cdn.ampproject.org/v0/amp-addthis-0.1.js';
6748
  }
6749
  }
6742
  add_filter('amp_post_template_data','ampforwp_register_addthis_script', 20);
6743
  function ampforwp_register_addthis_script( $data ){
6744
  global $redux_builder_amp;
6745
+ if ( ampforwp_get_setting('enable-add-this-option') && ( is_single() || (is_page() && ampforwp_get_setting('ampforwp-page-social') ) ) ) {
6746
+ if ( empty( $data['amp_component_scripts']['amp-addthis'] ) ) {
6747
  $data['amp_component_scripts']['amp-addthis'] = 'https://cdn.ampproject.org/v0/amp-addthis-0.1.js';
6748
  }
6749
  }