From e34ba5cd3f8d59d3bb2151d3d16e5934df36ae80 Mon Sep 17 00:00:00 2001 From: brasofilo Date: Sat, 12 Oct 2013 07:22:42 +0200 Subject: [PATCH 1/3] Prevent undefined PHP notice --- class.wp-help-pointers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.wp-help-pointers.php b/class.wp-help-pointers.php index 1ea255c..d0a3f26 100644 --- a/class.wp-help-pointers.php +++ b/class.wp-help-pointers.php @@ -58,7 +58,7 @@ public function __construct( $pntrs = array() ) { } public function register_pointers( $pntrs ) { - + $pointers = null; foreach( $pntrs as $ptr ) { if( $ptr['screen'] == $this->screen_id ) { From 5706f0665b2076732c8a4e837b673e0b8d32ec61 Mon Sep 17 00:00:00 2001 From: brasofilo Date: Sat, 12 Oct 2013 07:25:20 +0200 Subject: [PATCH 2/3] Prevent undefined PHP notice --- class.wp-help-pointers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/class.wp-help-pointers.php b/class.wp-help-pointers.php index d0a3f26..46a0e81 100644 --- a/class.wp-help-pointers.php +++ b/class.wp-help-pointers.php @@ -58,7 +58,8 @@ public function __construct( $pntrs = array() ) { } public function register_pointers( $pntrs ) { - $pointers = null; + $pointers = null; + foreach( $pntrs as $ptr ) { if( $ptr['screen'] == $this->screen_id ) { From 160d3e61d811a854b78f96a5e64b67eb6a179fdd Mon Sep 17 00:00:00 2001 From: brasofilo Date: Sat, 12 Oct 2013 07:26:17 +0200 Subject: [PATCH 3/3] Version change --- class.wp-help-pointers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.wp-help-pointers.php b/class.wp-help-pointers.php index 46a0e81..f2a57b1 100644 --- a/class.wp-help-pointers.php +++ b/class.wp-help-pointers.php @@ -29,7 +29,7 @@ * * * @package WP_Help_Pointer - * @version 0.1 + * @version 0.2 * @author Tim Debo * @copyright Copyright (c) 2012, Raw Creative Studios * @link https://github.com/rawcreative/wp-help-pointers