WhatsApp me - Version 2.0.1

Version Description

  • FIX removed array_filter function that requires PHP 5.6 min version.
Download this release

Release Info

Developer creapuntome
Plugin Icon 128x128 WhatsApp me
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: whatsapp, button, chat, support, contact
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3
8
- Stable tag: 2.0.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -60,6 +60,9 @@ WhatsApp me don't save any personal data and don't use cookies.
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 2.0.0 =
64
  * **NEW: Advanced visibility settings to define where to show *WhatsApp me* button.**
65
  * **NEW:** WooCommerce integration.
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3
8
+ Stable tag: 2.0.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
60
 
61
  == Changelog ==
62
 
63
+ = 2.0.1 =
64
+ * FIX removed array_filter function that requires PHP 5.6 min version.
65
+
66
  = 2.0.0 =
67
  * **NEW: Advanced visibility settings to define where to show *WhatsApp me* button.**
68
  * **NEW:** WooCommerce integration.
public/class-whatsappme-public.php CHANGED
@@ -310,12 +310,12 @@ class WhatsAppMe_Public {
310
  }
311
 
312
  // Check Custom Post Types
313
- $cpts = array_filter( $options, function($k){ return substr( $k, 0, 4 ) == 'cpt_'; }, ARRAY_FILTER_USE_KEY );
314
-
315
- foreach ($cpts as $cpt => $view) {
316
- $cpt = substr( $cpt, 4 );
317
- if ( is_singular( $cpt ) || is_post_type_archive( $cpt) ) {
318
- return $view == 'yes';
319
  }
320
  }
321
 
310
  }
311
 
312
  // Check Custom Post Types
313
+ foreach ( $options as $cpt => $view ) {
314
+ if ( substr( $cpt, 0, 4 ) == 'cpt_' ) {
315
+ $cpt = substr( $cpt, 4 );
316
+ if ( is_singular( $cpt ) || is_post_type_archive( $cpt ) ) {
317
+ return $view == 'yes';
318
+ }
319
  }
320
  }
321
 
whatsappme.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: WhatsApp me
10
  * Plugin URI: http://wame.chat
11
  * Description: Add support to your clients directly with WhatsApp.
12
- * Version: 2.0.0
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
- define( 'WHATSAPPME_VERSION', '2.0.0' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,
9
  * Plugin Name: WhatsApp me
10
  * Plugin URI: http://wame.chat
11
  * Description: Add support to your clients directly with WhatsApp.
12
+ * Version: 2.0.1
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
+ define( 'WHATSAPPME_VERSION', '2.0.1' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,