Custom Post Types and Custom Fields creator – WCK - Version 2.0.7

Version Description

Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 Custom Post Types and Custom Fields creator – WCK
Version 2.0.7
Comparing to
See all releases

Code changes from version 2.0.6 to 2.0.7

readme.txt CHANGED
@@ -5,8 +5,8 @@ Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
5
  Tags: custom fields, custom field, wordpress custom fields, custom post type, custom post types, post types, repeater fields, meta box, metabox, custom taxonomy, custom fields creator, post meta
6
 
7
  Requires at least: 3.1
8
- Tested up to: 4.7.1
9
- Stable tag: 2.0.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -139,6 +139,9 @@ Creating a taxonomy generally automatically creates a special query variable usi
139
  10. Taxonomy listing
140
 
141
  == Changelog ==
 
 
 
142
  = 2.0.6 =
143
  * Fixed an issue with fields that had their slug changed and didn't appear sometimes
144
  * Modifications to upload button so that it disappears when we already have something uploaded
5
  Tags: custom fields, custom field, wordpress custom fields, custom post type, custom post types, post types, repeater fields, meta box, metabox, custom taxonomy, custom fields creator, post meta
6
 
7
  Requires at least: 3.1
8
+ Tested up to: 4.7.2
9
+ Stable tag: 2.0.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
139
  10. Taxonomy listing
140
 
141
  == Changelog ==
142
+ = 2.4.0 =
143
+ * Compatibility with php version 7.1
144
+
145
  = 2.0.6 =
146
  * Fixed an issue with fields that had their slug changed and didn't appear sometimes
147
  * Modifications to upload button so that it disappears when we already have something uploaded
wck.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
6
- Version: 2.0.6
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
6
+ Version: 2.0.7
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
wordpress-creation-kit-api/wordpress-creation-kit.php CHANGED
@@ -900,6 +900,10 @@ class Wordpress_Creation_Kit{
900
  else if ( $this->args['context'] == 'option' )
901
  $results = get_option( $meta );
902
 
 
 
 
 
903
  /* for single metaboxes overwrite entries each time so we have a maximum of one */
904
  if( $this->args['single'] )
905
  $results = array( $values );
900
  else if ( $this->args['context'] == 'option' )
901
  $results = get_option( $meta );
902
 
903
+ /* we need an array here */
904
+ if( empty( $results ) && !is_array( $results ) )
905
+ $results = array();
906
+
907
  /* for single metaboxes overwrite entries each time so we have a maximum of one */
908
  if( $this->args['single'] )
909
  $results = array( $values );