AMP for WP – Accelerated Mobile Pages - Version 0.9.97.51.1

Version Description

(7th May 2019) = * Fixed: Cant use function return value in write context #3155 * Fixed: Search results not showing for "Select Categories to Hide AMP" option inHide Amp Bulk Tool #3154

Download this release

Release Info

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

Code changes from version 0.9.97.51 to 0.9.97.51.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.1.1
7
- Stable tag: 0.9.97.51
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -183,6 +183,10 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
183
 
184
  == Changelog ==
185
 
 
 
 
 
186
  = 0.9.97.51 (7th May 2019) =
187
  * Added: Yoast seo breadcrumbs Support #1473
188
  * Added: Compatibility with UseAnyFont Plugin #2774
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
 
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
189
+
190
  = 0.9.97.51 (7th May 2019) =
191
  * Added: Yoast seo breadcrumbs Support #1473
192
  * Added: Compatibility with UseAnyFont Plugin #2774
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
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');
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.1
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.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(){
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 0.9.97.51 (7th May 2019) =
4
  * Added: Yoast seo breadcrumbs Support #1473
5
  * Added: Compatibility with UseAnyFont Plugin #2774
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
6
+
7
  = 0.9.97.51 (7th May 2019) =
8
  * Added: Yoast seo breadcrumbs Support #1473
9
  * Added: Compatibility with UseAnyFont Plugin #2774
includes/features/functions.php CHANGED
@@ -24,7 +24,7 @@ function ampforwp_add_admin_styling(){
24
 
25
  // Localize the script with new data
26
  wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_builder_amp );
27
-
28
  wp_enqueue_script( 'ampforwp_admin_js' );
29
  }
30
  // 96. ampforwp_is_front_page() ampforwp_is_home() and ampforwp_is_blog is created
24
 
25
  // Localize the script with new data
26
  wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_builder_amp );
27
+ wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', wp_create_nonce('ampforwp-verify-request') );
28
  wp_enqueue_script( 'ampforwp_admin_js' );
29
  }
30
  // 96. ampforwp_is_front_page() ampforwp_is_home() and ampforwp_is_blog is created
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
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -184,6 +184,10 @@ You can contact us from [here](https://ampforwp.com/contact/)
184
 
185
  == Changelog ==
186
 
 
 
 
 
187
  = 0.9.97.51 (7th May 2019) =
188
  * Added: Yoast seo breadcrumbs Support #1473
189
  * Added: Compatibility with UseAnyFont Plugin #2774
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
 
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
190
+
191
  = 0.9.97.51 (7th May 2019) =
192
  * Added: Yoast seo breadcrumbs Support #1473
193
  * Added: Compatibility with UseAnyFont Plugin #2774
templates/features.php CHANGED
@@ -4533,7 +4533,7 @@ if( ! function_exists( 'featured_image_content_filter' ) ){
4533
  // Remove the figure (due to caption)
4534
  $content = preg_replace('/<figure(.*)src="'.$featured_image.'"(.*?)<\/figure>/', '', $content);
4535
  // Remove the amp-img
4536
- if(empty(has_post_thumbnail())){
4537
  $content = preg_replace('/<amp-img(.*)src="'.$featured_image.'"(.*?)<\/amp-img>/', '', $content);
4538
  }
4539
  }
4533
  // Remove the figure (due to caption)
4534
  $content = preg_replace('/<figure(.*)src="'.$featured_image.'"(.*?)<\/figure>/', '', $content);
4535
  // Remove the amp-img
4536
+ if(false == has_post_thumbnail()){
4537
  $content = preg_replace('/<amp-img(.*)src="'.$featured_image.'"(.*?)<\/amp-img>/', '', $content);
4538
  }
4539
  }