Ticket #19131: 19131.diff
File 19131.diff, 672 bytes (added by , 13 years ago) |
---|
-
wp-admin/edit-tags.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('./admin.php'); 11 11 12 if ( ! isset( $_GET['taxonomy'] ) ) 13 $taxonomy = 'post_tag'; 14 elseif ( in_array( $_GET['taxonomy'], get_taxonomies() ) ) 15 $taxonomy = sanitize_key( $_GET['taxonomy'] ); 16 else 12 if ( ! $taxnow ) 17 13 wp_die( __( 'Invalid taxonomy' ) ); 18 14 19 $ _GET['taxonomy'] = $taxonomy;15 $tax = get_taxonomy( $taxnow ); 20 16 21 $tax = get_taxonomy( $taxonomy );22 23 17 if ( ! $tax ) 24 18 wp_die( __( 'Invalid taxonomy' ) ); 25 19