Version Description
- Fix issue with get code and post types/taxonomies that use a dash instead of underscore. Props Evan Mullins/circlecube.
Download this release
Release Info
Developer | tw2113 |
Plugin | ![]() |
Version | 0.8.4 |
Comparing to | |
See all releases |
Code changes from version 0.8.3 to 0.8.4
- custom-post-type-ui.php +8 -6
- readme.txt +7 -1
custom-post-type-ui.php
CHANGED
@@ -4,14 +4,14 @@ Plugin Name: Custom Post Type UI
|
|
4 |
Plugin URI: http://webdevstudios.com/plugin/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios.com
|
7 |
-
Version: 0.8.
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
Text Domain: cpt-plugin
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
13 |
// Define current version constant
|
14 |
-
define( 'CPT_VERSION', '0.8.
|
15 |
|
16 |
// Define current WordPress version constant
|
17 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
@@ -666,6 +666,7 @@ if ( isset($_GET['cpt_msg'] ) && $_GET['cpt_msg'] == 'del' ) { ?>
|
|
666 |
$custom_post_type = '';
|
667 |
$cpt_support_array = '';
|
668 |
$cpt_tax_array = '';
|
|
|
669 |
|
670 |
$cpt_label = ( empty( $cpt_post_type["label"] ) ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["label"]);
|
671 |
$cpt_singular = ( empty( $cpt_post_type["singular_label"] ) ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
|
@@ -719,8 +720,8 @@ if ( isset($_GET['cpt_msg'] ) && $_GET['cpt_msg'] == 'del' ) { ?>
|
|
719 |
$counter++;
|
720 |
}
|
721 |
}
|
722 |
-
$custom_post_type = "add_action('init', 'cptui_register_my_cpt_" . $
|
723 |
-
$custom_post_type .= "function cptui_register_my_cpt_" . $
|
724 |
$custom_post_type .= "register_post_type('" . $cpt_post_type["name"] . "', array(\n'label' => '" . $cpt_label . "',\n";
|
725 |
$custom_post_type .= "'description' => '" . $cpt_post_type["description"] . "',\n";
|
726 |
$custom_post_type .= "'public' => " . disp_boolean( $cpt_post_type["public"]) . ",\n";
|
@@ -944,10 +945,11 @@ if (isset($_GET['cpt_msg']) && $_GET['cpt_msg']=='del') { ?>
|
|
944 |
<td colspan="10">
|
945 |
<div style="display:none;" id="slidepanel<?php echo $thecounter; ?>">
|
946 |
<?php
|
|
|
947 |
//display register_taxonomy code
|
948 |
$custom_tax = '';
|
949 |
-
$custom_tax = "add_action('init', 'cptui_register_my_taxes_" . $
|
950 |
-
$custom_tax .= "function cptui_register_my_taxes_" . $
|
951 |
|
952 |
if ( !$cpt_tax_type["label"] ) {
|
953 |
$cpt_label = esc_html( $cpt_tax_type["name"] );
|
4 |
Plugin URI: http://webdevstudios.com/plugin/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios.com
|
7 |
+
Version: 0.8.4
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
Text Domain: cpt-plugin
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
13 |
// Define current version constant
|
14 |
+
define( 'CPT_VERSION', '0.8.4' );
|
15 |
|
16 |
// Define current WordPress version constant
|
17 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
666 |
$custom_post_type = '';
|
667 |
$cpt_support_array = '';
|
668 |
$cpt_tax_array = '';
|
669 |
+
$cpt_sanitized_name = str_replace( '-', '_', $cpt_post_type['name'] );
|
670 |
|
671 |
$cpt_label = ( empty( $cpt_post_type["label"] ) ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["label"]);
|
672 |
$cpt_singular = ( empty( $cpt_post_type["singular_label"] ) ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
|
720 |
$counter++;
|
721 |
}
|
722 |
}
|
723 |
+
$custom_post_type = "add_action('init', 'cptui_register_my_cpt_" . $cpt_sanitized_name . "');\n";
|
724 |
+
$custom_post_type .= "function cptui_register_my_cpt_" . $cpt_sanitized_name . "() {\n";
|
725 |
$custom_post_type .= "register_post_type('" . $cpt_post_type["name"] . "', array(\n'label' => '" . $cpt_label . "',\n";
|
726 |
$custom_post_type .= "'description' => '" . $cpt_post_type["description"] . "',\n";
|
727 |
$custom_post_type .= "'public' => " . disp_boolean( $cpt_post_type["public"]) . ",\n";
|
945 |
<td colspan="10">
|
946 |
<div style="display:none;" id="slidepanel<?php echo $thecounter; ?>">
|
947 |
<?php
|
948 |
+
$cpt_tax_sanitized_name = str_replace( '-', '_', $cpt_tax_type['name'] );
|
949 |
//display register_taxonomy code
|
950 |
$custom_tax = '';
|
951 |
+
$custom_tax = "add_action('init', 'cptui_register_my_taxes_" . $cpt_tax_sanitized_name . "');\n";
|
952 |
+
$custom_tax .= "function cptui_register_my_taxes_" . $cpt_tax_sanitized_name . "() {\n";
|
953 |
|
954 |
if ( !$cpt_tax_type["label"] ) {
|
955 |
$cpt_label = esc_html( $cpt_tax_type["name"] );
|
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: 3.5
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 0.8.
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
@@ -27,6 +27,9 @@ All official development on this plugin is on GitHub. Version bumps will still b
|
|
27 |
|
28 |
== Changelog ==
|
29 |
|
|
|
|
|
|
|
30 |
= 0.8.3 =
|
31 |
* Dashicon support
|
32 |
|
@@ -148,6 +151,9 @@ All official development on this plugin is on GitHub. Version bumps will still b
|
|
148 |
|
149 |
== Upgrade Notice ==
|
150 |
|
|
|
|
|
|
|
151 |
= 0.8.3 =
|
152 |
* Dashicon support. FINALLY. REJOICE!
|
153 |
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, cck, taxonomy, tax, custom
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 0.8.4
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
27 |
|
28 |
== Changelog ==
|
29 |
|
30 |
+
= 0.8.4 =
|
31 |
+
* Fix issue with get code and post types/taxonomies that use a dash instead of underscore. Props Evan Mullins/circlecube.
|
32 |
+
|
33 |
= 0.8.3 =
|
34 |
* Dashicon support
|
35 |
|
151 |
|
152 |
== Upgrade Notice ==
|
153 |
|
154 |
+
= 0.8.4 =
|
155 |
+
* Fix issue with get code and post types/taxonomies that use a dash instead of underscore. Props Evan Mullins/circlecube.
|
156 |
+
|
157 |
= 0.8.3 =
|
158 |
* Dashicon support. FINALLY. REJOICE!
|
159 |
|