Changeset 18966
- Timestamp:
- 10/13/2011 06:55:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r18954 r18966 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('./admin.php'); 11 $tax = get_taxonomy( $taxnow ); 12 if ( !current_user_can( $tax->cap->manage_terms ) ) 11 12 if ( ! isset( $_GET['taxonomy'] ) ) 13 $taxonomy = 'post_tag'; 14 elseif ( in_array( $_GET['taxonomy'], get_taxonomies( array('show_ui' => true ) ) ) ) 15 $taxonomy = sanitize_key( $_GET['taxonomy'] ); 16 else 17 wp_die( __( 'Invalid taxonomy' ) ); 18 19 $_GET['taxonomy'] = $taxonomy; 20 21 $tax = get_taxonomy( $taxonomy ); 22 23 if ( ! $tax ) 24 wp_die( __( 'Invalid taxonomy' ) ); 25 26 if ( ! current_user_can( $tax->cap->manage_terms ) ) 13 27 wp_die( __( 'Cheatin’ uh?' ) ); 14 28
Note: See TracChangeset
for help on using the changeset viewer.