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

Version Description

  • Minor compatibility tweeks for WordPress 4.5
  • Added new filter for registration errors:'wck_registration_errors'
Download this release

Release Info

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

Code changes from version 1.2.4 to 1.2.5

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, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
 
7
  Requires at least: 3.1
8
- Tested up to: 4.4.2
9
- Stable tag: 1.2.4
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
@@ -143,6 +143,10 @@ Creating a taxonomy generally automatically creates a special query variable usi
143
  10. Taxonomy listing
144
 
145
  == Changelog ==
 
 
 
 
146
  = 1.2.4 =
147
  * We now load the translation files from the theme first if they exist in the folder:local_wck_lang
148
  * Now in Custom Fields Creator the Options field for selects,radios and checkboxes is required so you can't create those field without any options
5
  Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
 
7
  Requires at least: 3.1
8
+ Tested up to: 4.5
9
+ Stable tag: 1.2.5
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
143
  10. Taxonomy listing
144
 
145
  == Changelog ==
146
+ = 1.2.5 =
147
+ * Minor compatibility tweeks for WordPress 4.5
148
+ * Added new filter for registration errors:'wck_registration_errors'
149
+
150
  = 1.2.4 =
151
  * We now load the translation files from the theme first if they exist in the folder:local_wck_lang
152
  * Now in Custom Fields Creator the Options field for selects,radios and checkboxes is required so you can't create those field without any options
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.2.4
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.2.5
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
wordpress-creation-kit-api/wck-fep/wck-fep.php CHANGED
@@ -1058,11 +1058,13 @@ function wck_fep_handle_user_action(){
1058
  if( empty( $password ) && $action== "register" )
1059
  $registration_errors->add('password_error', __( 'Please enter a password.', 'wck' ) );
1060
  else if( $password != $confirm_password )
1061
- $registration_errors->add('password_dont_match_error', __( 'The passwords do not match.', 'wck' ) );
1062
-
 
 
1063
  if( $registration_errors->get_error_code() )
1064
  $user = $registration_errors;
1065
-
1066
  if( empty( $user ) ){
1067
  if( $action == 'register' ){
1068
  $userdata = array(
1058
  if( empty( $password ) && $action== "register" )
1059
  $registration_errors->add('password_error', __( 'Please enter a password.', 'wck' ) );
1060
  else if( $password != $confirm_password )
1061
+ $registration_errors->add('password_dont_match_error', __( 'The passwords do not match.', 'wck' ) );
1062
+
1063
+ $registration_errors = apply_filters('wck_registration_errors',$registration_errors, $_POST);
1064
+
1065
  if( $registration_errors->get_error_code() )
1066
  $user = $registration_errors;
1067
+
1068
  if( empty( $user ) ){
1069
  if( $action == 'register' ){
1070
  $userdata = array(