WhatsApp me - Version 2.1.3

Version Description

  • FIX PHP warning on some rare cases.
Download this release

Release Info

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

Code changes from version 2.1.2 to 2.1.3

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.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -61,6 +61,9 @@ WhatsApp me don't save any personal data and don't use cookies.
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 2.1.2 =
65
  * FIX javascript error on iOS Safari private browsing.
66
 
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3
8
+ Stable tag: 2.1.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
61
 
62
  == Changelog ==
63
 
64
+ = 2.1.3 =
65
+ * FIX PHP warning on some rare cases.
66
+
67
  = 2.1.2 =
68
  * FIX javascript error on iOS Safari private browsing.
69
 
public/class-whatsappme-public.php CHANGED
@@ -314,11 +314,13 @@ class WhatsAppMe_Public {
314
  }
315
 
316
  // Check Custom Post Types
317
- foreach ( $options as $cpt => $view ) {
318
- if ( substr( $cpt, 0, 4 ) == 'cpt_' ) {
319
- $cpt = substr( $cpt, 4 );
320
- if ( is_singular( $cpt ) || is_post_type_archive( $cpt ) ) {
321
- return $view == 'yes';
 
 
322
  }
323
  }
324
  }
314
  }
315
 
316
  // Check Custom Post Types
317
+ if ( is_array( $options ) ) {
318
+ foreach ( $options as $cpt => $view ) {
319
+ if ( substr( $cpt, 0, 4 ) == 'cpt_' ) {
320
+ $cpt = substr( $cpt, 4 );
321
+ if ( is_singular( $cpt ) || is_post_type_archive( $cpt ) ) {
322
+ return $view == 'yes';
323
+ }
324
  }
325
  }
326
  }
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.1.2
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.1.2' );
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.1.3
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.1.3' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,