Version Description
- Fixed: Missing admin menu icon for some browsers.
- Fixed: Undefined index notices for post type screen.
Download this release
Release Info
Developer | tw2113 |
Plugin | Custom Post Type UI |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- css/cptui.css +5 -0
- custom-post-type-ui.php +3 -3
- inc/post-types.php +4 -4
- readme.txt +9 -1
css/cptui.css
CHANGED
@@ -117,3 +117,8 @@ fieldset .cptui-help {
|
|
117 |
.cptui-help:focus {
|
118 |
box-shadow: none;
|
119 |
}
|
|
|
|
|
|
|
|
|
|
117 |
.cptui-help:focus {
|
118 |
box-shadow: none;
|
119 |
}
|
120 |
+
#toplevel_page_cptui_main_menu img {
|
121 |
+
height: 20 px;
|
122 |
+
margin-top: - 2 px;
|
123 |
+
width: 20 px;
|
124 |
+
}
|
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 |
/**
|
@@ -857,5 +857,5 @@ function cptui_get_preserved_label( $type = '', $key = '', $plural = '', $singul
|
|
857 |
* @return string
|
858 |
*/
|
859 |
function cptui_menu_icon() {
|
860 |
-
return 'data:image/svg
|
861 |
}
|
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.2
|
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.2' );
|
20 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
21 |
|
22 |
/**
|
857 |
* @return string
|
858 |
*/
|
859 |
function cptui_menu_icon() {
|
860 |
+
return 'data:image/svg;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABC9pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wUmlnaHRzPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvcmlnaHRzLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wUmlnaHRzOk1hcmtlZ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JlkxqczcZspWgEJBgLYYEFnwDZZObgHSsHyKBBY/6N2MISEL0sODRjZNK4IAEocGuzT1lAHiJ7dxYGV0CtZEJe0JrJBMl2xQCN+YdK0rvHSYoD/WXhNHfB4DXmfBNrQGZ4KlNBuxYaxcwThUKsYYCPpZAiCT69H5NAR9LgIuEoILnIBBL4hCQOlajyGjMrhLq/WvIGVzKs9FQ/dbrP3I73A0hoY9bfnM8ncaQOHI2Q64awNZEaN6PVgOYf4It78cacEASG668HyOFUlhUClUTg69iU6hYZGpYAtuJcb5jZ2Q5nE5DL4eGLrCIG89+Zqz5QPUQ+aGhSwsJ6JHqYUZj4j0koJlecy5a0GdeVpaLu5lEX+PsVo48380A/MWmQqkn9RzPz2LoZM7WwGrTB8oJI94a9TtB5fsTYABOp6Z0XZr87gAAAABJRU5ErkJggg==';
|
861 |
}
|
inc/post-types.php
CHANGED
@@ -470,8 +470,8 @@ function cptui_manage_post_types() {
|
|
470 |
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
471 |
)
|
472 |
);
|
473 |
-
$selected
|
474 |
-
$select['selected'] = ( ! empty( $selected ) ) ? $current['show_in_nav_menus'] : '';
|
475 |
echo $ui->get_select_input( array(
|
476 |
'namearray' => 'cpt_custom_post_type',
|
477 |
'name' => 'show_in_nav_menus',
|
@@ -490,8 +490,8 @@ function cptui_manage_post_types() {
|
|
490 |
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
491 |
)
|
492 |
);
|
493 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
|
494 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['show_in_rest'] : '';
|
495 |
echo $ui->get_select_input( array(
|
496 |
'namearray' => 'cpt_custom_post_type',
|
497 |
'name' => 'show_in_rest',
|
470 |
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
471 |
)
|
472 |
);
|
473 |
+
$selected = ( isset( $current ) && ! empty( $current['show_in_nav_menus'] ) ) ? disp_boolean( $current['show_in_nav_menus'] ) : '';
|
474 |
+
$select['selected'] = ( ! empty( $selected ) && ! empty( $current['show_in_nav_menus'] ) ) ? $current['show_in_nav_menus'] : '';
|
475 |
echo $ui->get_select_input( array(
|
476 |
'namearray' => 'cpt_custom_post_type',
|
477 |
'name' => 'show_in_nav_menus',
|
490 |
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
491 |
)
|
492 |
);
|
493 |
+
$selected = ( isset( $current ) && ! empty( $current['show_in_rest'] ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
|
494 |
+
$select['selected'] = ( !empty( $selected ) && ! empty( $current['show_in_rest'] ) ) ? $current['show_in_rest'] : '';
|
495 |
echo $ui->get_select_input( array(
|
496 |
'namearray' => 'cpt_custom_post_type',
|
497 |
'name' => 'show_in_rest',
|
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,10 @@ All official development on this plugin is on GitHub. Version bumps will still b
|
|
30 |
|
31 |
== Changelog ==
|
32 |
|
|
|
|
|
|
|
|
|
33 |
= 1.2.1 =
|
34 |
* Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
|
35 |
|
@@ -214,6 +218,10 @@ All official development on this plugin is on GitHub. Version bumps will still b
|
|
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 |
|
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.2
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 1.2.2 =
|
34 |
+
* Fixed: Missing admin menu icon for some browsers.
|
35 |
+
* Fixed: Undefined index notices for post type screen.
|
36 |
+
|
37 |
= 1.2.1 =
|
38 |
* Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
|
39 |
|
218 |
|
219 |
== Upgrade Notice ==
|
220 |
|
221 |
+
= 1.2.2 =
|
222 |
+
* Fixed: Missing admin menu icon for some browsers.
|
223 |
+
* Fixed: Undefined index notices for post type screen.
|
224 |
+
|
225 |
= 1.2.1 =
|
226 |
* Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
|
227 |
|