Custom Post Type UI - Version 1.6.1

Version Description

  • 2018-12-03 =
  • Fixed: Missed quote for "publicly_queryable" in taxonomy "get code" output.
  • Fixed: Adjusted handling of capitalization on the word "false" when being used to disable a taxonomy metabox via the "metabox callback" setting. The word "false" needs to be all lowercase to disable.
  • Updated: Added note about ability to pass "false" for the "metabox callback" setting to disable the metabox.
  • Updated: Fall back to "custom-post-type-ui" textdomain in "get code" output if theme does not have their own.
  • Updated: Make "Show In Rest" setting default to true taxonomies for sake of easier Gutenberg integration in the future. 1.6.0 had just post types doing this.
Download this release

Release Info

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

Code changes from version 1.6.0 to 1.6.1

changelog.txt ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ = 1.3.5 - 2016-6-3 =
2
+ * Removed undefined index error for publicly_queryable in "Get Code" area. That parameter is targeted for 1.4.0 release.
3
+
4
+ = 1.3.4 - 2016-5-4 =
5
+ * Fixed: moved WDS-based services "ads" to within the plugin itself. Will not request remote resources.
6
+ * Fixed: Better output formatting if WDS/Pluginize "ads" failed to load images.
7
+ * Fixed: undefined variable error in cptui.js
8
+ * Added: Newsletter subscription form to stay uptodate with Custom Post Type UI & Custom Post Type UI Extended news.
9
+ * Added: Support page/FAQ info regarding Pluginize and recent sidebar developments.
10
+
11
+ = 1.3.3 - 2016-4-5 =
12
+ * Revert Changes for ajax/heartbeat API requests before post type registration. 3rd party or other plugins were breaking because post types were not registered.
13
+
14
+ = 1.3.2 - 2016-4-5 =
15
+ * Fixed: Logic issue with cptui js files loading where they weren't meant to.
16
+ * Fixed: Required markers missing on required post type fields.
17
+ * Fixed: Removed excess labels that are not used by WordPress core.
18
+ * Added: New contributors to readme file. Welcome John and Ryan.
19
+ * Updated: New screenshot from 1.3.0 release. Moved to assets folder so users will no longer download as part of CPTUI.
20
+ * Updated: Better prevention of running our code during ajax/heartbeat api requests.
21
+
22
+ = 1.3.1 - 2016-3-25 =
23
+ * Fixed: Logic issue for default values of `public` parameter for taxonomies added in 1.3.0.
24
+
25
+ = 1.3.0 =
26
+ * Added: "CPTUI_VERSION" constant and deprecated "CPT_VERSION".
27
+ * Added: "Public" parameter for taxonomies
28
+ * Added: "View Post Types" and "View Taxonomies" tabs at top of add/edit screens.
29
+ * Added: Better prevention of potential duplicate slugs in new post types and taxonomies.
30
+ * Added: Current theme's textdomain as output in get code textareas.
31
+ * Added: Fill in singular and plural label fields if none provided. WordPress does not auto-fill these.
32
+ * Added: For developers: plenty of extra hooks all over for customization needs.
33
+ * Added: Javascript-based prevention of spaces and special characters for post type and taxonomy slugs.
34
+ * Added: Legend tag support to admin UI class.
35
+ * Added: Minified copies of our JavaScript and CSS. Define SCRIPT_DEBUG to true to use non-minified versions.
36
+ * Added: New post type and taxonomy labels provided by WordPress 4.3 and 4.4 releases.
37
+ * See: https://make.wordpress.org/core/2015/12/11/additional-labels-for-custom-post-types-and-custom-taxonomies/
38
+ * Added: Notes to post type and taxonomy edit screens about WordPress core's post types and taxonomies.
39
+ * Added: Taxonomy slug update ability with preserved term association.
40
+ * Added: Title, Editor, and Featured Image now checked by default for new post types.
41
+ * Added: "Show in Quick Edit" taxonomy parameter available in WP 4.2
42
+ * Added: Promo spots on add/edit screens for other products from WebDevStudios.
43
+ * Fixed: Need to visit permalinks page to flush rewrite rules after creating new post type or taxonomy.
44
+ * Fixed: Missing REST API based parameters in "Get Code" output.
45
+ * Updated: Increased accessibility coverage.
46
+ * Updated: Revised how tabs are added to pages so 3rd party developers can add their own tabs.
47
+ * Updated: Improved string consistency in our UI helper notes. Props @GaryJ
48
+ * Updated: Tested on WordPress 4.5
49
+ * Updated: Cleaned up admin footer area for social links.
50
+ * Updated: Moved all localization work to WordPress.org Translation packs
51
+
52
+ = 1.2.4 =
53
+ * Added: new CPTUI_VERSION constant to match naming of other current constants.
54
+ * Added: CPTUI_VERSION constant to cptui.css string for cache busting.
55
+
56
+ = 1.2.3 - 2016-01-31 =
57
+ * Fixed: copy/paste error with admin css. Props hinaloe.
58
+
59
+ = 1.2.2 - 2016-01-30 =
60
+ * Fixed: Missing admin menu icon for some browsers.
61
+ * Fixed: Undefined index notices for post type screen.
62
+
63
+ = 1.2.1 - 2016-01-17 =
64
+ * Fixed: Undefined index notices for custom taxonomies and new fields from 1.2.0
65
+
66
+ = 1.2.0 - 2016-01-15 =
67
+ * Added: Support for show_in_nav_menus parameter for post types.
68
+ * Added: Support for taxonomy descriptions.
69
+ * Added: Message on listings page if no post types or taxonomies are available.
70
+ * Added: Note regarding 'public' parameter not being true by default for WordPress but is for CPTUI.
71
+ * Added: Individual post type and taxonomy output for "Get Code" area.
72
+ * Added: Fallback values for post type/taxonomy select input and get code area if no plural label provided.
73
+ * Added: Support for custom query_var strings for post types.
74
+ * Added: Support for show_in_rest and rest_base for post types and taxonomies for the upcoming WordPress REST API.
75
+ * Added: Template hierarchy files to listings tables for user reference.
76
+ * Added: Form labels in more areas to help with accessibility and usability.
77
+ * Added: Fieldset method to Admin UI class for easily adding fieldset output.
78
+ * Added: Debugging tab for use with CPTUI support.
79
+ * Updated: Minimum version required. Now WordPress 4.2.
80
+ * Updated: Heading tags match accessibility changes in WordPress 4.3.
81
+ * Updated: Moved page title for some pages above tabs.
82
+ * Updated: Textdomain now matches WordPress.org repo slug.
83
+ * Updated: Added Visual Composer questions/answers to support section.
84
+ * Updated: Added question/answer regarding spaces in post type slugs
85
+ * Updated: Changed help icons to a Dashicon help icon.
86
+ * Fixed: Support for YARPP plugin.
87
+ * Fixed: Prevent potential issues with AJAX requests and our scripts/styles
88
+
89
+ = 1.1.3 - 2015-12-23 =
90
+ * Bumping WordPress compatibility version only. No other changes involved.
91
+
92
+ = 1.1.2 - 2015-08-11 =
93
+ * Change export value to plural label for taxonomies.
94
+ * Properly select a post type or taxonomy after deleting an existing value.
95
+ * Updated screenshots
96
+ * Added target="_blank" attribute to one of the inline help links for Menu position. Thanks @JulieKuehl
97
+ * Fixed potential XSS issue.
98
+
99
+ = 1.1.1 - 2015-06-15 =
100
+ * Re-add post type and taxonomy select buttons and only display for non-js users.
101
+
102
+ = 1.1.0 - 2015-06-12 =
103
+ * Simplified UI with regards to clicking amount.
104
+ * Auto selecting of first available post type or taxonomy in Edit tab.
105
+ * Switch to post type or taxonomy upon selection within Edit tab.
106
+ * Return of a list of CPTUI-registered post types and taxonomies.
107
+ * Post type slug update capability.
108
+ * Added function reference 3rd party link to support area.
109
+ * New hooks in edit screen for custom content display on screen.
110
+ * String updates.
111
+ * UI field option for custom "Supports" parameters from other plugins. Example: Yet Another Related Posts Plugin.
112
+ * Updated help/support section with another reference tool.
113
+ * Trim extra spaces potentially left behind in text inputs.
114
+ * Rearranged menu listing slightly to remove duplicate naming.
115
+ * GitHub repo has GitHub Updater (https://github.com/afragen/github-updater) compatible copy of CPTUI version that is available on WordPress.org
116
+
117
+ = 1.0.8 - 2015-05-01 =
118
+ * Register taxonomies at a higher priority than post types.
119
+
120
+ = 1.0.7 - 2015-04-20 =
121
+ * Preventive measures for potential XSS security issues with add_query_arg()
122
+
123
+ = 1.0.6 - 2015-04-14 =
124
+ * Change priority of post type registration function that was causing rewrite issues for many.
125
+ * Fix issues with help text spots not showing up for some post type fields. Props pedro-mendonca.
126
+ * Fix logic issue with PHP's empty() function and CPTUI 0.9.x saved settings.
127
+
128
+ = 1.0.5 - 2015-03-20 =
129
+ * Explicitly set the post type and taxonomy rewrite slugs as the registered slug if no custom ones provided.
130
+ * Prevent cptui.js from loading where it is not needed.
131
+ * Fixed undefined index notice for post type rewrite_withfront.
132
+ * Repopulated labels when none provided and post type or taxonomy mentioned in default label.
133
+ * Fix for import/export get code tab and hierarchical taxonomies
134
+
135
+ = 1.0.4 - 2015-03-05 =
136
+ * Fixed incorrect boolean order for hierarchical taxonomies and default value.
137
+ * Fixed missing closing div tags.
138
+ * Default menu position to null instead of empty string.
139
+ * Undefined index notice cleanup.
140
+ * Remove unnecessary hook.
141
+
142
+ = 1.0.3 - Unknown =
143
+ * Fix logic error regarding string "0" evaluating to false when checked for not empty.
144
+ * Fix for taxonomy with_front boolean value not evaluating correctly.
145
+ * Fix for taxonomy hierarchical boolean value not evaluating correctly.
146
+ * Fix for post type has_archive.
147
+ * German translation updates. If you speak/read German, myself and the translator would LOVE to have feedback on this.
148
+ * Internationalization string changes after feedback from German translation work.
149
+ * Minor issue with link html being stripped from UI field explanation.
150
+ * Better apostrophe/single quote support in label fields.
151
+
152
+ = 1.0.2 - 2015-02-12 =
153
+ * Fix issue with checked checkboxes for post type associations for taxonomies.
154
+ * Fix "Get Code" spot related to post type associations for taxonomies.
155
+ * Update some text strings after localization feedback.
156
+ * Fix typos in textdomain for two spots.
157
+ * Updating progressing translation files.
158
+ * Fix value for with_front parameter.
159
+ * Fix error in boolean type for map_meta_cap.
160
+ * Fix missing use of query_var slug if present for taxonomies.
161
+
162
+ = 1.0.1 - 2015-02-11 =
163
+ * Fix issues with taxonomy transfer and registration.
164
+ * Fix issue with taxonomy "show admin column" evaluating to true regardless of setting.
165
+ * Prefix our "help" class to prevent conflict with other plugins that use just "help".
166
+ * Fix issue with menu position values not being obeyed.
167
+ * Fix hook names inside taxonomy update function.
168
+ * Fix potentially empty parameter with taxonomies and "Get Code" output.
169
+ * Added PHP "undefined index" notice prevention for some parameters.
170
+
171
+ = 1.0.0 - 2015-02-09 =
172
+ * CPTUI has been given a new UI!
173
+ * Separated out post type and taxonomy creation to their own screens.
174
+ * Added import/export ability for post type and taxonomy settings.
175
+ * Added a Help/Support Screen.
176
+ * Added/Updated available parameters for post types and parameters.
177
+ * Updated i18n and translation files.
178
+ * Added Confirmation prompts before deleting post types and taxonomies.
179
+ * Added actions and filters for 3rd party customization.
180
+ * Added function that automatically converts 0.8.x and down settings to new setting arrangement.
181
+ * Changed how settings are stored so that post types and taxonomies are in named array indexes.
182
+ * Bug fixes not mentioned above.
custom-post-type-ui.php CHANGED
@@ -16,7 +16,7 @@ Plugin Name: Custom Post Type UI
16
  Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17
  Description: Admin panel for creating custom post types and custom taxonomies in WordPress
18
  Author: WebDevStudios
19
- Version: 1.6.0
20
  Author URI: https://webdevstudios.com/
21
  Text Domain: custom-post-type-ui
22
  Domain Path: /languages
@@ -28,8 +28,8 @@ if ( ! defined( 'ABSPATH' ) ) {
28
  exit;
29
  }
30
 
31
- define( 'CPT_VERSION', '1.6.0' ); // Left for legacy purposes.
32
- define( 'CPTUI_VERSION', '1.6.0' );
33
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
34
 
35
  /**
@@ -135,7 +135,7 @@ function cptui_plugin_menu() {
135
  *
136
  * @param string $value Capability required.
137
  */
138
- $capability = apply_filters( 'cptui_required_capabilities', 'manage_options' );
139
  $parent_slug = 'cptui_main_menu';
140
 
141
  add_menu_page( __( 'Custom Post Types', 'custom-post-type-ui' ), __( 'CPT UI', 'custom-post-type-ui' ), $capability, $parent_slug, 'cptui_settings', cptui_menu_icon() );
@@ -343,8 +343,8 @@ function cptui_register_single_post_type( $post_type = array() ) {
343
  }
344
 
345
  $labels = array(
346
- 'name' => $post_type['label'],
347
- 'singular_name' => $post_type['singular_label'],
348
  );
349
 
350
  $preserved = cptui_get_preserved_keys( 'post_types' );
16
  Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17
  Description: Admin panel for creating custom post types and custom taxonomies in WordPress
18
  Author: WebDevStudios
19
+ Version: 1.6.1
20
  Author URI: https://webdevstudios.com/
21
  Text Domain: custom-post-type-ui
22
  Domain Path: /languages
28
  exit;
29
  }
30
 
31
+ define( 'CPT_VERSION', '1.6.1' ); // Left for legacy purposes.
32
+ define( 'CPTUI_VERSION', '1.6.1' );
33
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
34
 
35
  /**
135
  *
136
  * @param string $value Capability required.
137
  */
138
+ $capability = apply_filters( 'cptui_required_capabilities', 'manage_options' );
139
  $parent_slug = 'cptui_main_menu';
140
 
141
  add_menu_page( __( 'Custom Post Types', 'custom-post-type-ui' ), __( 'CPT UI', 'custom-post-type-ui' ), $capability, $parent_slug, 'cptui_settings', cptui_menu_icon() );
343
  }
344
 
345
  $labels = array(
346
+ 'name' => $post_type['label'],
347
+ 'singular_name' => $post_type['singular_label'],
348
  );
349
 
350
  $preserved = cptui_get_preserved_keys( 'post_types' );
inc/about.php CHANGED
@@ -89,7 +89,7 @@ function cptui_settings() {
89
  <p><?php esc_html_e( 'We have added some initial WP-CLI support around importing and exporting your Custom Post Type UI settings. This will help with setting up your websites and provide some possible automation tools.', 'custom-post-type-ui' ); ?></p>
90
  </div>
91
  <div class="col last-feature">
92
- <h2><?php esc_html_e( 'Adjusted default "Show in REST" paramter.', 'custom-post-type-ui' ); ?></h2>
93
  <p><?php esc_html_e( 'Gutenberg is coming with WordPress 5.0. For post types to have "Gutenberg" support, the "Show in REST" parameter needs to be set to true. We are changing this to help ease users into better integration.', 'custom-post-type-ui' ) ?></p>
94
  </div>
95
  </div>
89
  <p><?php esc_html_e( 'We have added some initial WP-CLI support around importing and exporting your Custom Post Type UI settings. This will help with setting up your websites and provide some possible automation tools.', 'custom-post-type-ui' ); ?></p>
90
  </div>
91
  <div class="col last-feature">
92
+ <h2><?php esc_html_e( 'Adjusted default "Show in REST" parameter.', 'custom-post-type-ui' ); ?></h2>
93
  <p><?php esc_html_e( 'Gutenberg is coming with WordPress 5.0. For post types to have "Gutenberg" support, the "Show in REST" parameter needs to be set to true. We are changing this to help ease users into better integration.', 'custom-post-type-ui' ) ?></p>
94
  </div>
95
  </div>
inc/post-types.php CHANGED
@@ -662,7 +662,7 @@ function cptui_manage_post_types() {
662
  $select = array(
663
  'options' => array(
664
  array( 'attr' => '0', 'text' => esc_attr__( 'False', 'custom-post-type-ui' ) ),
665
- array( 'attr' => '1', 'text' => esc_attr__( 'True', 'custom-post-type-ui' ), 'default' => 'false' ),
666
  ),
667
  );
668
  $selected = ( isset( $current ) && ! empty( $current['show_in_rest'] ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
662
  $select = array(
663
  'options' => array(
664
  array( 'attr' => '0', 'text' => esc_attr__( 'False', 'custom-post-type-ui' ) ),
665
+ array( 'attr' => '1', 'text' => esc_attr__( 'True', 'custom-post-type-ui' ), 'default' => 'true' ),
666
  ),
667
  );
668
  $selected = ( isset( $current ) && ! empty( $current['show_in_rest'] ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
inc/taxonomies.php CHANGED
@@ -825,9 +825,12 @@ function cptui_manage_taxonomies() {
825
  array(
826
  'attr' => '0',
827
  'text' => esc_attr__( 'False', 'custom-post-type-ui' ),
828
- 'default' => 'false'
829
  ),
830
- array( 'attr' => '1', 'text' => esc_attr__( 'True', 'custom-post-type-ui' ) ),
 
 
 
 
831
  ),
832
  );
833
  $selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
@@ -836,7 +839,7 @@ function cptui_manage_taxonomies() {
836
  'namearray' => 'cpt_custom_tax',
837
  'name' => 'show_in_rest',
838
  'labeltext' => esc_html__( 'Show in REST API', 'custom-post-type-ui' ),
839
- 'aftertext' => esc_html__( '(default: false) Whether to show this taxonomy data in the WP REST API.', 'custom-post-type-ui' ),
840
  'selections' => $select,
841
  ) );
842
 
@@ -881,7 +884,7 @@ function cptui_manage_taxonomies() {
881
  'name' => 'meta_box_cb',
882
  'textvalue' => ( isset( $current['meta_box_cb'] ) ) ? esc_attr( $current['meta_box_cb'] ) : '',
883
  'labeltext' => esc_html__( 'Metabox callback', 'custom-post-type-ui' ),
884
- 'helptext' => esc_html__( 'Sets a callback function name for the meta box display. Hierarchical default: post_categories_meta_box, non-hierarchical default: post_tags_meta_box.', 'custom-post-type-ui' ),
885
  ) );
886
  ?>
887
  </table>
@@ -1219,7 +1222,13 @@ function cptui_update_taxonomy( $data = array() ) {
1219
  $rest_base = trim( $data['cpt_custom_tax']['rest_base'] );
1220
  $rest_controller_class = trim( $data['cpt_custom_tax']['rest_controller_class'] );
1221
  $show_quickpanel_bulk = ( ! empty( $data['cpt_custom_tax']['show_in_quick_edit'] ) ) ? disp_boolean( $data['cpt_custom_tax']['show_in_quick_edit'] ) : '';
1222
- $meta_box_cb = trim( $data['cpt_custom_tax']['meta_box_cb'] );
 
 
 
 
 
 
1223
 
1224
  $taxonomies[ $data['cpt_custom_tax']['name'] ] = array(
1225
  'name' => $name,
825
  array(
826
  'attr' => '0',
827
  'text' => esc_attr__( 'False', 'custom-post-type-ui' ),
 
828
  ),
829
+ array(
830
+ 'attr' => '1',
831
+ 'text' => esc_attr__( 'True', 'custom-post-type-ui' ),
832
+ 'default' => 'true',
833
+ ),
834
  ),
835
  );
836
  $selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
839
  'namearray' => 'cpt_custom_tax',
840
  'name' => 'show_in_rest',
841
  'labeltext' => esc_html__( 'Show in REST API', 'custom-post-type-ui' ),
842
+ 'aftertext' => esc_html__( '(Custom Post Type UI default: true) Whether to show this taxonomy data in the WP REST API.', 'custom-post-type-ui' ),
843
  'selections' => $select,
844
  ) );
845
 
884
  'name' => 'meta_box_cb',
885
  'textvalue' => ( isset( $current['meta_box_cb'] ) ) ? esc_attr( $current['meta_box_cb'] ) : '',
886
  'labeltext' => esc_html__( 'Metabox callback', 'custom-post-type-ui' ),
887
+ 'helptext' => esc_html__( 'Sets a callback function name for the meta box display. Hierarchical default: post_categories_meta_box, non-hierarchical default: post_tags_meta_box. To remove the metabox completely, use "false".', 'custom-post-type-ui' ),
888
  ) );
889
  ?>
890
  </table>
1222
  $rest_base = trim( $data['cpt_custom_tax']['rest_base'] );
1223
  $rest_controller_class = trim( $data['cpt_custom_tax']['rest_controller_class'] );
1224
  $show_quickpanel_bulk = ( ! empty( $data['cpt_custom_tax']['show_in_quick_edit'] ) ) ? disp_boolean( $data['cpt_custom_tax']['show_in_quick_edit'] ) : '';
1225
+
1226
+ $meta_box_cb = trim( $data['cpt_custom_tax']['meta_box_cb'] );
1227
+ // We may or may not need to force a boolean false keyword
1228
+ $maybe_false = strtolower( trim( $data['cpt_custom_tax']['meta_box_cb'] ) );
1229
+ if ( 'false' === $maybe_false ) {
1230
+ $meta_box_cb = $maybe_false;
1231
+ }
1232
 
1233
  $taxonomies[ $data['cpt_custom_tax']['name'] ] = array(
1234
  'name' => $name,
inc/tools.php CHANGED
@@ -283,6 +283,9 @@ function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
283
 
284
  $my_theme = wp_get_theme();
285
  $textdomain = $my_theme->get( 'TextDomain' );
 
 
 
286
  ?>
287
 
288
  /**
@@ -305,7 +308,7 @@ foreach ( $taxonomy['labels'] as $key => $label ) {
305
  "label" => __( "<?php echo $taxonomy['label']; ?>", "<?php echo $textdomain; ?>" ),
306
  "labels" => $labels,
307
  "public" => <?php echo $public; ?>,
308
- "publicly_queryable => <?php echo $publicly_queryable; ?>,
309
  "hierarchical" => <?php echo $taxonomy['hierarchical']; ?>,
310
  "show_ui" => <?php echo disp_boolean( $taxonomy['show_ui'] ); ?>,
311
  "show_in_menu" => <?php echo $show_in_menu; ?>,
@@ -486,6 +489,9 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
486
 
487
  $my_theme = wp_get_theme();
488
  $textdomain = $my_theme->get( 'TextDomain' );
 
 
 
489
  ?>
490
 
491
  /**
283
 
284
  $my_theme = wp_get_theme();
285
  $textdomain = $my_theme->get( 'TextDomain' );
286
+ if ( empty( $textdomain ) ) {
287
+ $textdomain = 'custom-post-type-ui';
288
+ }
289
  ?>
290
 
291
  /**
308
  "label" => __( "<?php echo $taxonomy['label']; ?>", "<?php echo $textdomain; ?>" ),
309
  "labels" => $labels,
310
  "public" => <?php echo $public; ?>,
311
+ "publicly_queryable" => <?php echo $publicly_queryable; ?>,
312
  "hierarchical" => <?php echo $taxonomy['hierarchical']; ?>,
313
  "show_ui" => <?php echo disp_boolean( $taxonomy['show_ui'] ); ?>,
314
  "show_in_menu" => <?php echo $show_in_menu; ?>,
489
 
490
  $my_theme = wp_get_theme();
491
  $textdomain = $my_theme->get( 'TextDomain' );
492
+ if ( empty( $textdomain ) ) {
493
+ $textdomain = 'custom-post-type-ui';
494
+ }
495
  ?>
496
 
497
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdevstudios, pluginize, tw2113, vegasgeek, modemlooper, williams
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, taxonomy, tax, custom, content types, post types
5
  Requires at least: 4.7
6
- Tested up to: 4.9.8
7
- Stable tag: 1.6.0
8
  License: GPL-2.0+
9
  Requires PHP: 5.2
10
 
@@ -31,7 +31,14 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
31
 
32
  == Changelog ==
33
 
34
- = 1.6.0 - TBD =
 
 
 
 
 
 
 
35
  * Added: Support for `meta_box_cb` parameter for `register_taxonomy` and taxonomies.
36
  * Added: Dynamically warn about existing slugs.
37
  * Added: "delete_with_user" support for post types.
@@ -121,7 +128,14 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
121
 
122
  == Upgrade Notice ==
123
 
124
- = 1.6.0 - TBD =
 
 
 
 
 
 
 
125
  * Added: Support for `meta_box_cb` parameter for `register_taxonomy` and taxonomies.
126
  * Added: Dynamically warn about existing slugs.
127
  * Added: "delete_with_user" support for post types.
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, taxonomy, tax, custom, content types, post types
5
  Requires at least: 4.7
6
+ Tested up to: 5.0.2
7
+ Stable tag: 1.6.1
8
  License: GPL-2.0+
9
  Requires PHP: 5.2
10
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.6.1 - 2018-12-03 =
35
+ * Fixed: Missed quote for "publicly_queryable" in taxonomy "get code" output.
36
+ * Fixed: Adjusted handling of capitalization on the word "false" when being used to disable a taxonomy metabox via the "metabox callback" setting. The word "false" needs to be all lowercase to disable.
37
+ * Updated: Added note about ability to pass "false" for the "metabox callback" setting to disable the metabox.
38
+ * Updated: Fall back to "custom-post-type-ui" textdomain in "get code" output if theme does not have their own.
39
+ * Updated: Make "Show In Rest" setting default to true taxonomies for sake of easier Gutenberg integration in the future. 1.6.0 had just post types doing this.
40
+
41
+ = 1.6.0 - 2018-10-22 =
42
  * Added: Support for `meta_box_cb` parameter for `register_taxonomy` and taxonomies.
43
  * Added: Dynamically warn about existing slugs.
44
  * Added: "delete_with_user" support for post types.
128
 
129
  == Upgrade Notice ==
130
 
131
+ = 1.6.1 - 2018-12-03 =
132
+ * Fixed: Missed quote for "publicly_queryable" in taxonomy "get code" output.
133
+ * Fixed: Adjusted handling of capitalization on the word "false" when being used to disable a taxonomy metabox via the "metabox callback" setting. The word "false" needs to be all lowercase to disable.
134
+ * Updated: Added note about ability to pass "false" for the "metabox callback" setting to disable the metabox.
135
+ * Updated: Fall back to "custom-post-type-ui" textdomain in "get code" output if theme does not have their own.
136
+ * Updated: Make "Show In Rest" setting default to true taxonomies for sake of easier Gutenberg integration in the future. 1.6.0 had just post types doing this.
137
+
138
+ = 1.6.0 - 2018-10-22 =
139
  * Added: Support for `meta_box_cb` parameter for `register_taxonomy` and taxonomies.
140
  * Added: Dynamically warn about existing slugs.
141
  * Added: "delete_with_user" support for post types.