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

Version Description

  • Security Fixes
Download this release

Release Info

Developer adispiac
Plugin Icon 128x128 Custom Post Types and Custom Fields creator – WCK
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.0

readme.txt CHANGED
@@ -1,4 +1,4 @@
1
- === WCK - Custom Post Types and Custom Fields Creator ===
2
 
3
  Contributors: cozmoslabs, reflectionmedia, madalin.ungureanu, sareiodata, adispiac
4
  Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
@@ -6,7 +6,7 @@ Tags: custom fields, custom field, wordpress custom fields, custom post type, cu
6
 
7
  Requires at least: 3.1
8
  Tested up to: 4.5.3
9
- Stable tag: 1.3.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -28,7 +28,7 @@ A must have tool for creating custom fields, custom post types and taxonomies, f
28
  [youtube http://www.youtube.com/watch?v=_ueYKlP_i7w]
29
 
30
  = Custom Fields =
31
- * Custom fields types: wysiwyg editor, upload, text, textarea, select, checkbox, radio
32
  * Easy to create custom fields for any post type.
33
  * Support for **Repeater Fields** and **Repeater Groups** of custom fields.
34
  * Drag and Drop to sort the Repeater Fields.
@@ -46,7 +46,7 @@ A must have tool for creating custom fields, custom post types and taxonomies, f
46
  * Attach the taxonomy to built in or custom post types
47
 
48
  = WCK PRO =
49
- The [WCK PRO version](http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/) offers:
50
 
51
  * **Swift Templates** - Build your front-end templates directly from the WordPress admin UI, without writing any PHP code. Easily display registered custom post types, custom fields and taxonomies in your current theme.
52
  * Front-end Posting - form builder for content creation and editing
@@ -54,7 +54,7 @@ A must have tool for creating custom fields, custom post types and taxonomies, f
54
  * More field types: Date-picker, Country Select, User Select, CPT Select
55
  * Premium Email Support for your project
56
 
57
- [See complete list of PRO features](http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/)
58
 
59
  = Website =
60
  http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/
@@ -62,12 +62,6 @@ http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/
62
  = Announcement Post and Video =
63
  http://www.cozmoslabs.com/3747-wordpress-creation-kit-a-sparkling-new-custom-field-taxonomy-and-post-type-creator/
64
 
65
- = Documentation =
66
- http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/
67
-
68
- = Bug Submission and Forum Support =
69
- http://www.cozmoslabs.com/forums/forum/wordpresscreationkit/
70
-
71
  == Installation ==
72
 
73
  1. Upload the wordpress-creation-kit folder to the '/wp-content/plugins/' directory
@@ -145,6 +139,11 @@ Creating a taxonomy generally automatically creates a special query variable usi
145
  10. Taxonomy listing
146
 
147
  == Changelog ==
 
 
 
 
 
148
  = 1.3.1 =
149
  * Fixed preview draft not showing the correct custom fields in certain conditions
150
  * Fixed a fatal error that was happening in certain conditions when adding a new Custom Fields Creator Meta Box
1
+ === Custom Post Types and Custom Fields creator - WCK ===
2
 
3
  Contributors: cozmoslabs, reflectionmedia, madalin.ungureanu, sareiodata, adispiac
4
  Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
6
 
7
  Requires at least: 3.1
8
  Tested up to: 4.5.3
9
+ Stable tag: 1.3.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
28
  [youtube http://www.youtube.com/watch?v=_ueYKlP_i7w]
29
 
30
  = Custom Fields =
31
+ * Custom fields types: wysiwyg editor, upload, text, textarea, select, checkbox, radio, number, HTML, time-picker, phone, currency select, color picker, heading
32
  * Easy to create custom fields for any post type.
33
  * Support for **Repeater Fields** and **Repeater Groups** of custom fields.
34
  * Drag and Drop to sort the Repeater Fields.
46
  * Attach the taxonomy to built in or custom post types
47
 
48
  = WCK PRO =
49
+ The [WCK PRO version](http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wp.org&utm_medium=pb-description-page&utm_campaign=WCKFree) offers:
50
 
51
  * **Swift Templates** - Build your front-end templates directly from the WordPress admin UI, without writing any PHP code. Easily display registered custom post types, custom fields and taxonomies in your current theme.
52
  * Front-end Posting - form builder for content creation and editing
54
  * More field types: Date-picker, Country Select, User Select, CPT Select
55
  * Premium Email Support for your project
56
 
57
+ [See complete list of PRO features](http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wp.org&utm_medium=pb-description-page&utm_campaign=WCKFree)
58
 
59
  = Website =
60
  http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/
62
  = Announcement Post and Video =
63
  http://www.cozmoslabs.com/3747-wordpress-creation-kit-a-sparkling-new-custom-field-taxonomy-and-post-type-creator/
64
 
 
 
 
 
 
 
65
  == Installation ==
66
 
67
  1. Upload the wordpress-creation-kit folder to the '/wp-content/plugins/' directory
139
  10. Taxonomy listing
140
 
141
  == Changelog ==
142
+ = 1.3.2 =
143
+ * Added Number field type
144
+ * Removed notice regarding post thumbnail on certain themes
145
+ * New branding to match website
146
+
147
  = 1.3.1 =
148
  * Fixed preview draft not showing the correct custom fields in certain conditions
149
  * Fixed a fatal error that was happening in certain conditions when adding a new Custom Fields Creator Meta Box
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: 1.3.1
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: 1.3.0
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
wordpress-creation-kit-api/assets/map/map.php CHANGED
@@ -30,9 +30,6 @@ function wck_map_field_add_meta( $meta, $id, $values, $element_id = '' ) {
30
 
31
  $args = get_post_meta( $field_set->ID, 'wck_' . ( !empty( $id ) ? 'cfc' : 'opc_field' ) . '_args', true );
32
 
33
- if( empty( $args[0][ $meta_context . '-name' ] ) )
34
- continue;
35
-
36
  if( $args[0][ $meta_context . '-name' ] !== $meta )
37
  continue;
38
 
30
 
31
  $args = get_post_meta( $field_set->ID, 'wck_' . ( !empty( $id ) ? 'cfc' : 'opc_field' ) . '_args', true );
32
 
 
 
 
33
  if( $args[0][ $meta_context . '-name' ] !== $meta )
34
  continue;
35
 
wordpress-creation-kit-api/wordpress-creation-kit.php CHANGED
@@ -102,9 +102,8 @@ class Wordpress_Creation_Kit{
102
  add_action("wp_ajax_wck_remove_meta".$this->args['meta_name'], array( &$this, 'wck_remove_meta') );
103
  add_action("wp_ajax_wck_reorder_meta".$this->args['meta_name'], array( &$this, 'wck_reorder_meta') );
104
 
105
- $wck_tools = get_option('wck_tools');
106
- if( file_exists( dirname(__FILE__).'/wck-fep/wck-fep.php' ) && ( empty( $wck_tools ) || ( !empty( $wck_tools[0]["frontend-posting"] ) && $wck_tools[0]["frontend-posting"] == 'enabled' ) ) ){
107
- add_action("wp_ajax_nopriv_wck_add_meta".$this->args['meta_name'], array( &$this, 'wck_add_meta') );
108
  add_action("wp_ajax_nopriv_wck_update_meta".$this->args['meta_name'], array( &$this, 'wck_update_meta') );
109
  add_action("wp_ajax_nopriv_wck_show_update".$this->args['meta_name'], array( &$this, 'wck_show_update_form') );
110
  add_action("wp_ajax_nopriv_wck_refresh_list".$this->args['meta_name'], array( &$this, 'wck_refresh_list') );
102
  add_action("wp_ajax_wck_remove_meta".$this->args['meta_name'], array( &$this, 'wck_remove_meta') );
103
  add_action("wp_ajax_wck_reorder_meta".$this->args['meta_name'], array( &$this, 'wck_reorder_meta') );
104
 
105
+ if( file_exists( dirname(__FILE__).'/wck-fep.php' ) && ( !isset( $wck_fep ) || $wck_fep == 'enabled' ) ){
106
+ add_action("wp_ajax_nopriv_wck_add_meta".$this->args['meta_name'], array( &$this, 'wck_add_meta') );
 
107
  add_action("wp_ajax_nopriv_wck_update_meta".$this->args['meta_name'], array( &$this, 'wck_update_meta') );
108
  add_action("wp_ajax_nopriv_wck_show_update".$this->args['meta_name'], array( &$this, 'wck_show_update_form') );
109
  add_action("wp_ajax_nopriv_wck_refresh_list".$this->args['meta_name'], array( &$this, 'wck_refresh_list') );