Changeset 34359
- Timestamp:
- 09/20/2015 05:10:55 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r34306 r34359 17 17 if ( ! $tax ) 18 18 wp_die( __( 'Invalid taxonomy' ) ); 19 20 if ( ! in_array( $tax->name, get_taxonomies( array( 'show_ui' => true ) ) ) ) { 21 wp_die( __( 'You are not allowed to manage these items.' ) ); 22 } 19 23 20 24 if ( ! current_user_can( $tax->cap->manage_terms ) ) { -
trunk/src/wp-includes/taxonomy-functions.php
r34247 r34359 282 282 * * Defaults to true. 283 283 * - hierarchical - Whether the taxonomy is hierarchical (e.g. category). Defaults to false. 284 * - show_ui - Whether to generate a default UI for managingthis taxonomy in the admin.284 * - show_ui - Whether to generate and allow a UI for managing terms in this taxonomy in the admin. 285 285 * * If not set, the default is inherited from public. 286 286 * - show_in_menu - Whether to show the taxonomy in the admin menu. … … 324 324 * @since 2.3.0 325 325 * @since 4.2.0 Introduced `show_in_quick_edit` argument. 326 * @since 4.4.0 The `show_ui` argument is now enforced on the term editing screen. 326 327 * 327 328 * @global array $wp_taxonomies Registered taxonomies.
Note: See TracChangeset
for help on using the changeset viewer.