Version Description
- Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
Download this release
Release Info
Developer | tw2113 |
Plugin | Custom Post Type UI |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- custom-post-type-ui.php +11 -4
- readme.txt +7 -1
custom-post-type-ui.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Post Type UI
|
|
4 |
Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios
|
7 |
-
Version: 1.2.
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
Text Domain: custom-post-type-ui
|
10 |
Domain Path: /languages
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'CPT_VERSION', '1.2.
|
20 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
21 |
|
22 |
/**
|
@@ -302,6 +302,11 @@ function cptui_register_single_taxonomy( $taxonomy = array() ) {
|
|
302 |
'singular_name' => $taxonomy['singular_label']
|
303 |
);
|
304 |
|
|
|
|
|
|
|
|
|
|
|
305 |
$preserved = cptui_get_preserved_keys( 'taxonomies' );
|
306 |
foreach( $taxonomy['labels'] as $key => $label ) {
|
307 |
|
@@ -329,6 +334,8 @@ function cptui_register_single_taxonomy( $taxonomy = array() ) {
|
|
329 |
|
330 |
$show_admin_column = ( !empty( $taxonomy['show_admin_column'] ) && false !== get_disp_boolean( $taxonomy['show_admin_column'] ) ) ? true : false;
|
331 |
|
|
|
|
|
332 |
$rest_base = null;
|
333 |
if ( ! empty( $taxonomy['rest_base'] ) ) {
|
334 |
$rest_base = $taxonomy['rest_base'];
|
@@ -337,13 +344,13 @@ function cptui_register_single_taxonomy( $taxonomy = array() ) {
|
|
337 |
$args = array(
|
338 |
'labels' => $labels,
|
339 |
'label' => $taxonomy['label'],
|
340 |
-
'description' => $
|
341 |
'hierarchical' => get_disp_boolean( $taxonomy['hierarchical'] ),
|
342 |
'show_ui' => get_disp_boolean( $taxonomy['show_ui'] ),
|
343 |
'query_var' => $taxonomy['query_var'],
|
344 |
'rewrite' => $rewrite,
|
345 |
'show_admin_column' => $show_admin_column,
|
346 |
-
'show_in_rest' =>
|
347 |
'rest_base' => $rest_base,
|
348 |
);
|
349 |
|
4 |
Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios
|
7 |
+
Version: 1.2.1
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
Text Domain: custom-post-type-ui
|
10 |
Domain Path: /languages
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'CPT_VERSION', '1.2.1' );
|
20 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
21 |
|
22 |
/**
|
302 |
'singular_name' => $taxonomy['singular_label']
|
303 |
);
|
304 |
|
305 |
+
$description = '';
|
306 |
+
if ( !empty( $taxonomy['description'] ) ) {
|
307 |
+
$description = $taxonomy['description'];
|
308 |
+
}
|
309 |
+
|
310 |
$preserved = cptui_get_preserved_keys( 'taxonomies' );
|
311 |
foreach( $taxonomy['labels'] as $key => $label ) {
|
312 |
|
334 |
|
335 |
$show_admin_column = ( !empty( $taxonomy['show_admin_column'] ) && false !== get_disp_boolean( $taxonomy['show_admin_column'] ) ) ? true : false;
|
336 |
|
337 |
+
$show_in_rest = ( ! empty( $taxonomy['show_in_rest'] ) && false !== get_disp_boolean( $taxonomy['show_in_rest'] ) ) ? true : false;
|
338 |
+
|
339 |
$rest_base = null;
|
340 |
if ( ! empty( $taxonomy['rest_base'] ) ) {
|
341 |
$rest_base = $taxonomy['rest_base'];
|
344 |
$args = array(
|
345 |
'labels' => $labels,
|
346 |
'label' => $taxonomy['label'],
|
347 |
+
'description' => $description,
|
348 |
'hierarchical' => get_disp_boolean( $taxonomy['hierarchical'] ),
|
349 |
'show_ui' => get_disp_boolean( $taxonomy['show_ui'] ),
|
350 |
'query_var' => $taxonomy['query_var'],
|
351 |
'rewrite' => $rewrite,
|
352 |
'show_admin_column' => $show_admin_column,
|
353 |
+
'show_in_rest' => $show_in_rest,
|
354 |
'rest_base' => $rest_base,
|
355 |
);
|
356 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, cck, taxonomy, tax, custom
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.4.1
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
@@ -30,6 +30,9 @@ All official development on this plugin is on GitHub. Version bumps will still b
|
|
30 |
|
31 |
== Changelog ==
|
32 |
|
|
|
|
|
|
|
33 |
= 1.2.0 =
|
34 |
* Added: Support for show_in_nav_menus parameter for post types.
|
35 |
* Added: Support for taxonomy descriptions.
|
@@ -211,6 +214,9 @@ All official development on this plugin is on GitHub. Version bumps will still b
|
|
211 |
|
212 |
== Upgrade Notice ==
|
213 |
|
|
|
|
|
|
|
214 |
= 1.2.0 =
|
215 |
* Added: Support for show_in_nav_menus parameter for post types.
|
216 |
* Added: Support for taxonomy descriptions.
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, cck, taxonomy, tax, custom
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.4.1
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 1.2.1 =
|
34 |
+
* Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
|
35 |
+
|
36 |
= 1.2.0 =
|
37 |
* Added: Support for show_in_nav_menus parameter for post types.
|
38 |
* Added: Support for taxonomy descriptions.
|
214 |
|
215 |
== Upgrade Notice ==
|
216 |
|
217 |
+
= 1.2.1 =
|
218 |
+
* Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
|
219 |
+
|
220 |
= 1.2.0 =
|
221 |
* Added: Support for show_in_nav_menus parameter for post types.
|
222 |
* Added: Support for taxonomy descriptions.
|