WordPress.org

Make WordPress Core

Ticket #19131: 19131.diff

File 19131.diff, 672 bytes (added by nacin, 8 years ago)
  • wp-admin/edit-tags.php

     
    99/** WordPress Administration Bootstrap */
    1010require_once('./admin.php');
    1111
    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
     12if ( ! $taxnow )
    1713        wp_die( __( 'Invalid taxonomy' ) );
    1814
    19 $_GET['taxonomy'] = $taxonomy;
     15$tax = get_taxonomy( $taxnow );
    2016
    21 $tax = get_taxonomy( $taxonomy );
    22 
    2317if ( ! $tax )
    2418        wp_die( __( 'Invalid taxonomy' ) );
    2519