Custom Post Type UI - Version 0.8.3

Version Description

  • Dashicon support
Download this release

Release Info

Developer tw2113
Plugin Icon 128x128 Custom Post Type UI
Version 0.8.3
Comparing to
See all releases

Code changes from version 0.8.2 to 0.8.3

Files changed (2) hide show
  1. custom-post-type-ui.php +4 -4
  2. readme.txt +10 -4
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.2
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.2' );
15
 
16
  // Define current WordPress version constant
17
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
@@ -99,7 +99,7 @@ function cpt_create_custom_post_types() {
99
  $cpt_rewrite_slug = ( !empty( $cpt_post_type["rewrite_slug"] ) ) ? esc_html( $cpt_post_type["rewrite_slug"] ) : esc_html( $cpt_post_type["name"] );
100
  $cpt_rewrite_withfront = ( !empty( $cpt_post_type["rewrite_withfront"] ) ) ? true : get_disp_boolean( $cpt_post_type["rewrite_withfront"] ); //reversed because false is empty
101
  $cpt_menu_position = ( !empty( $cpt_post_type["menu_position"] ) ) ? intval( $cpt_post_type["menu_position"] ) : null; //must be null
102
- $cpt_menu_icon = ( !empty( $cpt_post_type["menu_icon"] ) ) ? esc_url( $cpt_post_type["menu_icon"] ) : null; //must be null
103
  $cpt_taxonomies = ( !empty( $cpt_post_type[1] ) ) ? $cpt_post_type[1] : array();
104
  $cpt_supports = ( !empty( $cpt_post_type[0] ) ) ? $cpt_post_type[0] : array();
105
 
@@ -671,7 +671,7 @@ if ( isset($_GET['cpt_msg'] ) && $_GET['cpt_msg'] == 'del' ) { ?>
671
  $cpt_singular = ( empty( $cpt_post_type["singular_label"] ) ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
672
  $cpt_rewrite_slug = ( empty( $cpt_post_type["rewrite_slug"] ) ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["rewrite_slug"]);
673
  $cpt_menu_position = ( empty( $cpt_post_type["menu_position"] ) ) ? null : intval($cpt_post_type["menu_position"]);
674
- $cpt_menu_icon = ( !empty( $cpt_post_type["menu_icon"] ) ) ? esc_url($cpt_post_type["menu_icon"]) : null;
675
 
676
  if ( true == $cpt_post_type["show_ui"] ) {
677
  $cpt_show_in_menu = ( $cpt_post_type["show_in_menu"] == 1 ) ? 1 : 0;
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.3
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.3' );
15
 
16
  // Define current WordPress version constant
17
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
99
  $cpt_rewrite_slug = ( !empty( $cpt_post_type["rewrite_slug"] ) ) ? esc_html( $cpt_post_type["rewrite_slug"] ) : esc_html( $cpt_post_type["name"] );
100
  $cpt_rewrite_withfront = ( !empty( $cpt_post_type["rewrite_withfront"] ) ) ? true : get_disp_boolean( $cpt_post_type["rewrite_withfront"] ); //reversed because false is empty
101
  $cpt_menu_position = ( !empty( $cpt_post_type["menu_position"] ) ) ? intval( $cpt_post_type["menu_position"] ) : null; //must be null
102
+ $cpt_menu_icon = ( !empty( $cpt_post_type["menu_icon"] ) ) ? esc_attr( $cpt_post_type["menu_icon"] ) : null; //must be null
103
  $cpt_taxonomies = ( !empty( $cpt_post_type[1] ) ) ? $cpt_post_type[1] : array();
104
  $cpt_supports = ( !empty( $cpt_post_type[0] ) ) ? $cpt_post_type[0] : array();
105
 
671
  $cpt_singular = ( empty( $cpt_post_type["singular_label"] ) ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
672
  $cpt_rewrite_slug = ( empty( $cpt_post_type["rewrite_slug"] ) ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["rewrite_slug"]);
673
  $cpt_menu_position = ( empty( $cpt_post_type["menu_position"] ) ) ? null : intval($cpt_post_type["menu_position"]);
674
+ $cpt_menu_icon = ( !empty( $cpt_post_type["menu_icon"] ) ) ? esc_attr($cpt_post_type["menu_icon"]) : null;
675
 
676
  if ( true == $cpt_post_type["show_ui"] ) {
677
  $cpt_show_in_menu = ( $cpt_post_type["show_in_menu"] == 1 ) ? 1 : 0;
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: williamsba1, tw2113, webdevstudios
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
4
  Tags: custom post types, CPT, CMS, post, types, post type, cck, taxonomy, tax, custom
5
- Requires at least: 3.1
6
- Tested up to: 3.9
7
- Stable tag: 0.8.2
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.2 =
31
  * Fix with_front logic issue.
32
 
@@ -145,6 +148,9 @@ All official development on this plugin is on GitHub. Version bumps will still b
145
 
146
  == Upgrade Notice ==
147
 
 
 
 
148
  = 0.8.2 =
149
  * Fixes with_front logic issue that was defaulting to true.
150
 
@@ -267,4 +273,4 @@ The register_post_type function was added in WordPress 2.9 so technically it sho
267
  == Other Notes ==
268
 
269
  = Outside contributors that we wish to thank =
270
- [brandondove](https://github.com/brandondove)
2
  Contributors: williamsba1, tw2113, webdevstudios
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
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.3
8
  License: GPLv2
9
 
10
  Admin UI for creating custom post types and custom taxonomies in WordPress
27
 
28
  == Changelog ==
29
 
30
+ = 0.8.3 =
31
+ * Dashicon support
32
+
33
  = 0.8.2 =
34
  * Fix with_front logic issue.
35
 
148
 
149
  == Upgrade Notice ==
150
 
151
+ = 0.8.3 =
152
+ * Dashicon support. FINALLY. REJOICE!
153
+
154
  = 0.8.2 =
155
  * Fixes with_front logic issue that was defaulting to true.
156
 
273
  == Other Notes ==
274
 
275
  = Outside contributors that we wish to thank =
276
+ [brandondove](https://github.com/brandondove)