Custom Post Type UI - Version 1.4.1

Version Description

  • 2016-8-25 =
  • Fixed: issue with default values for new parameters regarding menu/nav menu display for taxonomies.
  • Fixed: typo in support area.
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

Files changed (4) hide show
  1. custom-post-type-ui.php +10 -3
  2. inc/import_export.php +12 -2
  3. inc/support.php +1 -1
  4. readme.txt +10 -2
custom-post-type-ui.php CHANGED
@@ -15,7 +15,7 @@ Plugin Name: Custom Post Type UI
15
  Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
16
  Description: Admin panel for creating custom post types and custom taxonomies in WordPress
17
  Author: WebDevStudios
18
- Version: 1.4.0
19
  Author URI: https://webdevstudios.com/
20
  Text Domain: custom-post-type-ui
21
  Domain Path: /languages
@@ -27,8 +27,8 @@ if ( ! defined( 'ABSPATH' ) ) {
27
  exit;
28
  }
29
 
30
- define( 'CPT_VERSION', '1.4.0' ); // Left for legacy purposes.
31
- define( 'CPTUI_VERSION', '1.4.0' );
32
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
33
 
34
  /**
@@ -540,7 +540,14 @@ function cptui_register_single_taxonomy( $taxonomy = array() ) {
540
 
541
  $show_in_menu = ( ! empty( $taxonomy['show_in_menu'] ) && false !== get_disp_boolean( $taxonomy['show_in_menu'] ) ) ? true : false;
542
 
 
 
 
 
543
  $show_in_nav_menus = ( ! empty( $taxonomy['show_in_nav_menus'] ) && false !== get_disp_boolean( $taxonomy['show_in_nav_menus'] ) ) ? true : false;
 
 
 
544
 
545
  $show_in_rest = ( ! empty( $taxonomy['show_in_rest'] ) && false !== get_disp_boolean( $taxonomy['show_in_rest'] ) ) ? true : false;
546
 
15
  Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
16
  Description: Admin panel for creating custom post types and custom taxonomies in WordPress
17
  Author: WebDevStudios
18
+ Version: 1.4.1
19
  Author URI: https://webdevstudios.com/
20
  Text Domain: custom-post-type-ui
21
  Domain Path: /languages
27
  exit;
28
  }
29
 
30
+ define( 'CPT_VERSION', '1.4.1' ); // Left for legacy purposes.
31
+ define( 'CPTUI_VERSION', '1.4.1' );
32
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
33
 
34
  /**
540
 
541
  $show_in_menu = ( ! empty( $taxonomy['show_in_menu'] ) && false !== get_disp_boolean( $taxonomy['show_in_menu'] ) ) ? true : false;
542
 
543
+ if ( empty( $taxonomy['show_in_menu'] ) ) {
544
+ $show_in_menu = get_disp_boolean( $taxonomy['show_ui'] );
545
+ }
546
+
547
  $show_in_nav_menus = ( ! empty( $taxonomy['show_in_nav_menus'] ) && false !== get_disp_boolean( $taxonomy['show_in_nav_menus'] ) ) ? true : false;
548
+ if ( empty( $taxonomy['show_in_nav_menus'] ) ) {
549
+ $show_in_nav_menus = $public;
550
+ }
551
 
552
  $show_in_rest = ( ! empty( $taxonomy['show_in_rest'] ) && false !== get_disp_boolean( $taxonomy['show_in_rest'] ) ) ? true : false;
553
 
inc/import_export.php CHANGED
@@ -215,6 +215,16 @@ function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
215
  $public = ( isset( $taxonomy['public'] ) ) ? disp_boolean( $taxonomy['public'] ) : 'true';
216
  $show_in_quick_edit = ( isset( $taxonomy['show_in_quick_edit'] ) ) ? disp_boolean( $taxonomy['show_in_quick_edit'] ) : disp_boolean( $taxonomy['show_ui'] );
217
 
 
 
 
 
 
 
 
 
 
 
218
  $my_theme = wp_get_theme();
219
  $textdomain = $my_theme->get( 'TextDomain' );
220
  ?>
@@ -235,8 +245,8 @@ function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
235
  "hierarchical" => <?php echo $taxonomy['hierarchical']; ?>,
236
  "label" => "<?php echo $taxonomy['label']; ?>",
237
  "show_ui" => <?php echo disp_boolean( $taxonomy['show_ui'] ); ?>,
238
- "show_in_menu" => <?php echo disp_boolean( $taxonomy['show_in_menu'] ); ?>,
239
- "show_in_nav_menus" => <?php echo disp_boolean( $taxonomy['show_in_nav_menus'] ); ?>,
240
  "query_var" => <?php echo disp_boolean( $taxonomy['query_var'] );?>,
241
  "rewrite" => <?php echo $rewrite; ?>,
242
  "show_admin_column" => <?php echo $taxonomy['show_admin_column']; ?>,
215
  $public = ( isset( $taxonomy['public'] ) ) ? disp_boolean( $taxonomy['public'] ) : 'true';
216
  $show_in_quick_edit = ( isset( $taxonomy['show_in_quick_edit'] ) ) ? disp_boolean( $taxonomy['show_in_quick_edit'] ) : disp_boolean( $taxonomy['show_ui'] );
217
 
218
+ $show_in_menu = ( ! empty( $taxonomy['show_in_menu'] ) && false !== get_disp_boolean( $taxonomy['show_in_menu'] ) ) ? 'true' : 'false';
219
+ if ( empty( $taxonomy['show_in_menu'] ) ) {
220
+ $show_in_menu = disp_boolean( $taxonomy['show_ui'] );
221
+ }
222
+
223
+ $show_in_nav_menus = ( ! empty( $taxonomy['show_in_nav_menus'] ) && false !== get_disp_boolean( $taxonomy['show_in_nav_menus'] ) ) ? 'true' : 'false';
224
+ if ( empty( $taxonomy['show_in_nav_menus'] ) ) {
225
+ $show_in_nav_menus = $public;
226
+ }
227
+
228
  $my_theme = wp_get_theme();
229
  $textdomain = $my_theme->get( 'TextDomain' );
230
  ?>
245
  "hierarchical" => <?php echo $taxonomy['hierarchical']; ?>,
246
  "label" => "<?php echo $taxonomy['label']; ?>",
247
  "show_ui" => <?php echo disp_boolean( $taxonomy['show_ui'] ); ?>,
248
+ "show_in_menu" => <?php echo $show_in_menu; ?>,
249
+ "show_in_nav_menus" => <?php echo $show_in_nav_menus; ?>,
250
  "query_var" => <?php echo disp_boolean( $taxonomy['query_var'] );?>,
251
  "rewrite" => <?php echo $rewrite; ?>,
252
  "show_admin_column" => <?php echo $taxonomy['show_admin_column']; ?>,
inc/support.php CHANGED
@@ -102,7 +102,7 @@ function cptui_support() {
102
  </li>
103
  <li>
104
  <span tabindex="0" class="question" aria-controls="q6" aria-expanded="false"><?php esc_html_e( 'Do I still need Custom Post Type UI if I purchase and install Custom Post Type UI Extended?', 'custom-post-type-ui' ); ?></span>
105
- <div class="answer" id="q6"><?php esc_html_e( 'Yes you will. The Custom Post Type UI Extended is not a replacement of the free version with added extra features. It acts based on the data made available trhough Custom Post Type UI', 'custom-post-type-ui' ); ?>
106
  </div>
107
  </li>
108
  <li>
102
  </li>
103
  <li>
104
  <span tabindex="0" class="question" aria-controls="q6" aria-expanded="false"><?php esc_html_e( 'Do I still need Custom Post Type UI if I purchase and install Custom Post Type UI Extended?', 'custom-post-type-ui' ); ?></span>
105
+ <div class="answer" id="q6"><?php esc_html_e( 'Yes you will. The Custom Post Type UI Extended is not a replacement of the free version with added extra features. It acts based on the data made available through Custom Post Type UI', 'custom-post-type-ui' ); ?>
106
  </div>
107
  </li>
108
  <li>
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Custom Post Type UI ===
2
- Contributors: webdevstudios, tw2113, vegasgeek, modemlooper, williamsba1
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, content types, post types
5
  Requires at least: 4.2
6
  Tested up to: 4.6
7
- Stable tag: 1.4.0
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. New releases are still pub
30
 
31
  == Changelog ==
32
 
 
 
 
 
33
  = 1.4.0 - 2016-8-22 =
34
  * Added: "Export" tab on editor screens for quick access to post type or taxonomy export pages.
35
  * Added: CPTUI notices are now dismissable via a button on the right side.
@@ -141,6 +145,10 @@ All official development on this plugin is on GitHub. New releases are still pub
141
 
142
  == Upgrade Notice ==
143
 
 
 
 
 
144
  = 1.4.0 - 2016-8-22 =
145
  * Added: "Export" tab on editor screens for quick access to post type or taxonomy export pages.
146
  * Added: CPTUI notices are now dismissable via a button on the right side.
1
  === Custom Post Type UI ===
2
+ Contributors: webdevstudios, pluginize, tw2113, vegasgeek, modemlooper, williamsba1
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, content types, post types
5
  Requires at least: 4.2
6
  Tested up to: 4.6
7
+ Stable tag: 1.4.1
8
  License: GPLv2
9
 
10
  Admin UI for creating custom post types and custom taxonomies in WordPress
30
 
31
  == Changelog ==
32
 
33
+ = 1.4.1 - 2016-8-25 =
34
+ * Fixed: issue with default values for new parameters regarding menu/nav menu display for taxonomies.
35
+ * Fixed: typo in support area.
36
+
37
  = 1.4.0 - 2016-8-22 =
38
  * Added: "Export" tab on editor screens for quick access to post type or taxonomy export pages.
39
  * Added: CPTUI notices are now dismissable via a button on the right side.
145
 
146
  == Upgrade Notice ==
147
 
148
+ = 1.4.1 - 2016-8-25 =
149
+ * Fixed: issue with default values for new parameters regarding menu/nav menu display for taxonomies.
150
+ * Fixed: typo in support area.
151
+
152
  = 1.4.0 - 2016-8-22 =
153
  * Added: "Export" tab on editor screens for quick access to post type or taxonomy export pages.
154
  * Added: CPTUI notices are now dismissable via a button on the right side.