Custom Post Type UI - Version 1.5.1

Version Description

  • 2017-1-17 =
  • Fixed: Undefined index notice during update process for themes or plugins.
  • Fixed: Blacklisted the word "include" from allowed taxonomy slugs. Causes menus to not show in WP Admin.
  • Fixed: Blacklisted the word "fields" from allowed post type slugs. Causes pages to not show in WP Admin.
  • Updated: Replaced hardcoded "manage_options" reference in our menu setup with variable holding filtered capability.
Download this release

Release Info

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

Code changes from version 1.5.0 to 1.5.1

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.5.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.5.0' ); // Left for legacy purposes.
31
- define( 'CPTUI_VERSION', '1.5.0' );
32
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
33
 
34
  /**
@@ -156,7 +156,7 @@ function cptui_plugin_menu() {
156
 
157
  // Remove the default one so we can add our customized version.
158
  remove_submenu_page( $parent_slug, 'cptui_main_menu' );
159
- add_submenu_page( $parent_slug, __( 'About CPT UI', 'custom-post-type-ui' ), __( 'About CPT UI', 'custom-post-type-ui' ), 'manage_options', 'cptui_main_menu', 'cptui_settings' );
160
  }
161
  add_action( 'admin_menu', 'cptui_plugin_menu' );
162
 
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.5.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.5.1' ); // Left for legacy purposes.
31
+ define( 'CPTUI_VERSION', '1.5.1' );
32
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
33
 
34
  /**
156
 
157
  // Remove the default one so we can add our customized version.
158
  remove_submenu_page( $parent_slug, 'cptui_main_menu' );
159
+ add_submenu_page( $parent_slug, __( 'About CPT UI', 'custom-post-type-ui' ), __( 'About CPT UI', 'custom-post-type-ui' ), $capability, 'cptui_main_menu', 'cptui_settings' );
160
  }
161
  add_action( 'admin_menu', 'cptui_plugin_menu' );
162
 
inc/post-types.php CHANGED
@@ -1494,6 +1494,7 @@ function cptui_reserved_post_types() {
1494
  'action',
1495
  'order',
1496
  'theme',
 
1497
  );
1498
 
1499
  /**
1494
  'action',
1495
  'order',
1496
  'theme',
1497
+ 'fields',
1498
  );
1499
 
1500
  /**
inc/taxonomies.php CHANGED
@@ -1251,6 +1251,7 @@ function cptui_reserved_taxonomies() {
1251
  'feed',
1252
  'fields',
1253
  'hour',
 
1254
  'link_category',
1255
  'm',
1256
  'minute',
1251
  'feed',
1252
  'fields',
1253
  'hour',
1254
+ 'include',
1255
  'link_category',
1256
  'm',
1257
  'minute',
inc/utility.php CHANGED
@@ -666,6 +666,11 @@ function cptui_error_admin_notice() {
666
  * @param array $extras Extra information about performed upgrade.
667
  */
668
  function cptui_not_new_install( $wp_upgrader, $extras ) {
 
 
 
 
 
669
  // Was CPTUI updated?
670
  if ( ! in_array( 'custom-post-type-ui/custom-post-type-ui.php', $extras['plugins'] ) ) {
671
  return;
666
  * @param array $extras Extra information about performed upgrade.
667
  */
668
  function cptui_not_new_install( $wp_upgrader, $extras ) {
669
+
670
+ if ( ! is_array( $extras['plugins'] ) ) {
671
+ return;
672
+ }
673
+
674
  // Was CPTUI updated?
675
  if ( ! in_array( 'custom-post-type-ui/custom-post-type-ui.php', $extras['plugins'] ) ) {
676
  return;
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, taxonomy, tax, custom, content types, post types
5
  Requires at least: 4.6
6
  Tested up to: 4.7
7
- Stable tag: 1.5.0
8
  License: GPLv2
9
 
10
  Admin UI for creating custom post types and custom taxonomies for WordPress
@@ -30,6 +30,12 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
30
 
31
  == Changelog ==
32
 
 
 
 
 
 
 
33
  = 1.5.0 - 2017-1-10 =
34
  * Added: Helper functions to grab individual post types or taxonomies from CPTUI options, function to check for support for custom saved values.
35
  * Added: Helper functions to mark and check if a new CPTUI install.
@@ -82,6 +88,12 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
82
 
83
  == Upgrade Notice ==
84
 
 
 
 
 
 
 
85
  = 1.5.0 - 2017-1-10 =
86
  * Added: Helper functions to grab individual post types or taxonomies from CPTUI options, function to check for support for custom saved values.
87
  * Added: Helper functions to mark and check if a new CPTUI install.
4
  Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
5
  Requires at least: 4.6
6
  Tested up to: 4.7
7
+ Stable tag: 1.5.1
8
  License: GPLv2
9
 
10
  Admin UI for creating custom post types and custom taxonomies for WordPress
30
 
31
  == Changelog ==
32
 
33
+ = 1.5.1 - 2017-1-17 =
34
+ * Fixed: Undefined index notice during update process for themes or plugins.
35
+ * Fixed: Blacklisted the word "include" from allowed taxonomy slugs. Causes menus to not show in WP Admin.
36
+ * Fixed: Blacklisted the word "fields" from allowed post type slugs. Causes pages to not show in WP Admin.
37
+ * Updated: Replaced hardcoded "manage_options" reference in our menu setup with variable holding filtered capability.
38
+
39
  = 1.5.0 - 2017-1-10 =
40
  * Added: Helper functions to grab individual post types or taxonomies from CPTUI options, function to check for support for custom saved values.
41
  * Added: Helper functions to mark and check if a new CPTUI install.
88
 
89
  == Upgrade Notice ==
90
 
91
+ = 1.5.1 - 2017-1-17 =
92
+ * Fixed: Undefined index notice during update process for themes or plugins.
93
+ * Fixed: Blacklisted the word "include" from allowed taxonomy slugs. Causes menus to not show in WP Admin.
94
+ * Fixed: Blacklisted the word "fields" from allowed post type slugs. Causes pages to not show in WP Admin.
95
+ * Updated: Replaced hardcoded "manage_options" reference in our menu setup with variable holding filtered capability.
96
+
97
  = 1.5.0 - 2017-1-10 =
98
  * Added: Helper functions to grab individual post types or taxonomies from CPTUI options, function to check for support for custom saved values.
99
  * Added: Helper functions to mark and check if a new CPTUI install.