Version Description
- Added a filter so we can add a metabox to multiple meta boxes: wck_filter_add_meta_box_screens
- Fixed issue with PageBuilder from SiteOrigin plugin and CodeMirror
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | Custom Post Types and Custom Fields creator – WCK |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.4 to 2.1.5
- readme.txt +6 -2
- wck.php +1 -1
- wordpress-creation-kit-api/wordpress-creation-kit.php +7 -1
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: 4.9.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -137,6 +137,10 @@ Creating a taxonomy generally automatically creates a special query variable usi
|
|
137 |
10. Taxonomy listing
|
138 |
|
139 |
== Changelog ==
|
|
|
|
|
|
|
|
|
140 |
= 2.1.4 =
|
141 |
* Improved speed on sites with a lot of Custom Fields Metaboxes defined
|
142 |
* Fixed some php notices
|
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: 4.9.1
|
7 |
+
Stable tag: 2.1.5
|
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.1.5 =
|
141 |
+
* Added a filter so we can add a metabox to multiple meta boxes: wck_filter_add_meta_box_screens
|
142 |
+
* Fixed issue with PageBuilder from SiteOrigin plugin and CodeMirror
|
143 |
+
|
144 |
= 2.1.4 =
|
145 |
* Improved speed on sites with a lot of Custom Fields Metaboxes defined
|
146 |
* Fixed some php notices
|
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.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: 2.1.5
|
7 |
Author URI: http://www.cozmoslabs.com
|
8 |
|
9 |
License: GPL2
|
wordpress-creation-kit-api/wordpress-creation-kit.php
CHANGED
@@ -170,7 +170,13 @@ class Wordpress_Creation_Kit{
|
|
170 |
}
|
171 |
|
172 |
if( $this->args['post_id'] == '' && $this->args['page_template'] == '' ){
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
/* add class to meta box */
|
175 |
add_filter( "postbox_classes_".$this->args['post_type']."_".$this->args['metabox_id'], array( &$this, 'wck_add_metabox_classes' ) );
|
176 |
}
|
170 |
}
|
171 |
|
172 |
if( $this->args['post_id'] == '' && $this->args['page_template'] == '' ){
|
173 |
+
/* turn this into an array for wp 4.4.0 */
|
174 |
+
global $wp_version;
|
175 |
+
if( version_compare( $wp_version, '4.4.0', '>=' ) && !is_array( $this->args['post_type'] ) ) {
|
176 |
+
$this->args['post_type'] = array($this->args['post_type']);
|
177 |
+
}
|
178 |
+
$screens = apply_filters( 'wck_filter_add_meta_box_screens', $this->args['post_type'] );
|
179 |
+
add_meta_box($this->args['metabox_id'], $this->args['metabox_title'], array( &$this, 'wck_content' ), $screens, $metabox_context, $metabox_priority, array( 'meta_name' => $this->args['meta_name'], 'meta_array' => $this->args['meta_array']) );
|
180 |
/* add class to meta box */
|
181 |
add_filter( "postbox_classes_".$this->args['post_type']."_".$this->args['metabox_id'], array( &$this, 'wck_add_metabox_classes' ) );
|
182 |
}
|