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

Version Description

Download this release

Release Info

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

Code changes from version 2.2.5 to 2.2.6

css/wck-sas.css CHANGED
@@ -27,7 +27,7 @@
27
  display: inline-block;
28
  text-transform: uppercase;
29
  color: #fff;
30
- margin-top: 110px;
31
  font-size: 90%;
32
  }
33
  .serial-notification{
27
  display: inline-block;
28
  text-transform: uppercase;
29
  color: #fff;
30
+ margin-top: 125px;
31
  font-size: 90%;
32
  }
33
  .serial-notification{
images/wck-logo-free.png CHANGED
Binary file
images/wck-logo-hobbyist.png CHANGED
Binary file
images/wck-logo-pro.png CHANGED
Binary file
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: cozmoslabs, reflectionmedia, madalin.ungureanu, sareiodata, adispi
3
  Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
4
  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
5
  Requires at least: 3.1
6
- Tested up to: 5.3.2
7
- Stable tag: 2.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -137,6 +137,12 @@ Creating a taxonomy generally automatically creates a special query variable usi
137
  10. Taxonomy listing
138
 
139
  == Changelog ==
 
 
 
 
 
 
140
  = 2.2.5 =
141
  * Compatibility with php 7.2
142
 
3
  Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
4
  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
5
  Requires at least: 3.1
6
+ Tested up to: 5.4.1
7
+ Stable tag: 2.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
137
  10. Taxonomy listing
138
 
139
  == Changelog ==
140
+ = 2.2.5 =
141
+ * Fixed an incompatibility with Profile Builder
142
+ * Added an icon on the update page
143
+ * Small css modification
144
+ * Updated icons in plugin
145
+
146
  = 2.2.5 =
147
  * Compatibility with php 7.2
148
 
wck-cfc.php CHANGED
@@ -868,21 +868,21 @@ function wck_cfc_make_options_required( $meta_array, $meta, $values, $id ) {
868
  }
869
  }
870
  }
871
- }
872
 
873
- foreach( $meta_array as $key => $field ) {
874
- if( isset( $field['type'] ) && $field['type'] == 'phone' ) {
875
- $meta_array[$key]['required'] ? $meta_array[$key]['was_required'] = true : $meta_array[$key]['was_required'] = false;
876
- $meta_array[$key]['required'] = true;
877
- add_filter( "wck_required_test_{$meta}_" . Wordpress_Creation_Kit::wck_generate_slug( $field['title'], $field ), 'wck_phone_field_error', 10, 6 );
878
- }
879
 
880
- if( isset( $field['type'] ) && $field['type'] == 'number' ) {
881
- $meta_array[$key]['required'] ? $meta_array[$key]['was_required'] = true : $meta_array[$key]['was_required'] = false;
882
- $meta_array[$key]['required'] = true;
883
- add_filter( "wck_required_test_{$meta}_" . Wordpress_Creation_Kit::wck_generate_slug( $field['title'], $field ), 'wck_number_field_error', 10, 6 );
884
- }
885
- }
 
886
 
887
  return $meta_array;
888
  }
868
  }
869
  }
870
  }
 
871
 
872
+ foreach( $meta_array as $key => $field ) {
873
+ if( isset( $field['type'] ) && $field['type'] == 'phone' ) {
874
+ $meta_array[$key]['required'] ? $meta_array[$key]['was_required'] = true : $meta_array[$key]['was_required'] = false;
875
+ $meta_array[$key]['required'] = true;
876
+ add_filter( "wck_required_test_{$meta}_" . Wordpress_Creation_Kit::wck_generate_slug( $field['title'], $field ), 'wck_phone_field_error', 10, 6 );
877
+ }
878
 
879
+ if( isset( $field['type'] ) && $field['type'] == 'number' ) {
880
+ $meta_array[$key]['required'] ? $meta_array[$key]['was_required'] = true : $meta_array[$key]['was_required'] = false;
881
+ $meta_array[$key]['required'] = true;
882
+ add_filter( "wck_required_test_{$meta}_" . Wordpress_Creation_Kit::wck_generate_slug( $field['title'], $field ), 'wck_number_field_error', 10, 6 );
883
+ }
884
+ }
885
+ }
886
 
887
  return $meta_array;
888
  }
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.2.5
7
  Author URI: http://www.cozmoslabs.com
8
  Text Domain: wck
9
  Domain Path: /languages
@@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
 
29
  define( 'WCK_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
30
  define( 'WCK_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
31
- define( 'WCK_PLUGIN_VERSION', '2.6.0' );
32
 
33
  /* ready for localization */
34
  $current_theme = wp_get_theme();
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.2.6
7
  Author URI: http://www.cozmoslabs.com
8
  Text Domain: wck
9
  Domain Path: /languages
28
 
29
  define( 'WCK_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
30
  define( 'WCK_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
31
+ define( 'WCK_PLUGIN_VERSION', '2.6.1' );
32
 
33
  /* ready for localization */
34
  $current_theme = wp_get_theme();
wordpress-creation-kit-api/wck-fep/wck-fep.php CHANGED
@@ -642,8 +642,14 @@ class WCK_FrontEnd_Posting extends Wordpress_Creation_Kit{
642
  /* post author */
643
  if( $this->args['anonymous_posting'] == 'yes' )
644
  $wck_fep_new_post['post_author'] = $this->args['assign_to_user'];
645
- else
646
- $wck_fep_new_post['post_author'] = get_current_user_id();
 
 
 
 
 
 
647
 
648
 
649
  if( !empty( $values['featured-image'] ) ){
642
  /* post author */
643
  if( $this->args['anonymous_posting'] == 'yes' )
644
  $wck_fep_new_post['post_author'] = $this->args['assign_to_user'];
645
+ else {
646
+ if( !empty( $action_type ) && $action_type === 'edit' ) {
647
+ $post_obj = get_post( $post_ID );
648
+ $wck_fep_new_post['post_author'] = $post_obj->post_author;
649
+ }
650
+ else
651
+ $wck_fep_new_post['post_author'] = get_current_user_id();
652
+ }
653
 
654
 
655
  if( !empty( $values['featured-image'] ) ){