Version Description
- Small change in saving single metaboxes
- Fixed a possible conflict with ACF Pro
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | Custom Post Types and Custom Fields creator – WCK |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
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.5
|
9 |
-
Stable tag: 1.2.
|
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.5 =
|
147 |
* Minor compatibility tweeks for WordPress 4.5
|
148 |
* Added new filter for registration errors:'wck_registration_errors'
|
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.2
|
9 |
+
Stable tag: 1.2.6
|
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.6 =
|
147 |
+
* Small change in saving single metaboxes
|
148 |
+
* Fixed a possible conflict with ACF Pro
|
149 |
+
|
150 |
= 1.2.5 =
|
151 |
* Minor compatibility tweeks for WordPress 4.5
|
152 |
* Added new filter for registration errors:'wck_registration_errors'
|
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.
|
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.6
|
7 |
Author URI: http://www.cozmoslabs.com
|
8 |
|
9 |
License: GPL2
|
wordpress-creation-kit-api/wck-fep/wck-fep.php
CHANGED
@@ -314,6 +314,10 @@ class WCK_FrontEnd_Posting extends Wordpress_Creation_Kit{
|
|
314 |
$nonce = wp_create_nonce( 'wck-fep-add-post' );
|
315 |
|
316 |
if( $action == 'edit' ){
|
|
|
|
|
|
|
|
|
317 |
$fep_form = get_post( $post_id );
|
318 |
if ( $fep_form ){
|
319 |
$author_id = $fep_form->post_author;
|
314 |
$nonce = wp_create_nonce( 'wck-fep-add-post' );
|
315 |
|
316 |
if( $action == 'edit' ){
|
317 |
+
|
318 |
+
if( $this->args['post_type'] != get_post_type( $post_id ) )
|
319 |
+
return '<div class="fep-error fep-access-denied">' . __( "Wrong form for this post type", "wck" ) . '</div>';
|
320 |
+
|
321 |
$fep_form = get_post( $post_id );
|
322 |
if ( $fep_form ){
|
323 |
$author_id = $fep_form->post_author;
|
wordpress-creation-kit-api/wordpress-creation-kit.php
CHANGED
@@ -1082,9 +1082,18 @@ class Wordpress_Creation_Kit{
|
|
1082 |
function wck_save_single_metabox( $post_id, $post ){
|
1083 |
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
1084 |
return $post_id;
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1088 |
/* only go through for metaboxes defined for this post type */
|
1089 |
if( get_post_type( $post_id ) != $this->args['post_type'] )
|
1090 |
return $post_id;
|
1082 |
function wck_save_single_metabox( $post_id, $post ){
|
1083 |
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
1084 |
return $post_id;
|
1085 |
+
|
1086 |
+
// Check the user's permissions.
|
1087 |
+
if ( isset( $_POST['post_type'] ) && 'page' == $_POST['post_type'] ) {
|
1088 |
+
if ( ! current_user_can( 'edit_page', $post_id ) ) {
|
1089 |
+
return $post_id;
|
1090 |
+
}
|
1091 |
+
} else {
|
1092 |
+
if ( ! current_user_can( 'edit_post', $post_id ) ) {
|
1093 |
+
return $post_id;
|
1094 |
+
}
|
1095 |
+
}
|
1096 |
+
|
1097 |
/* only go through for metaboxes defined for this post type */
|
1098 |
if( get_post_type( $post_id ) != $this->args['post_type'] )
|
1099 |
return $post_id;
|