Make WordPress Core

Changeset 19253


Ignore:
Timestamp:
11/11/2011 03:44:16 PM (13 years ago)
Author:
ryan
Message:

Use taxnow to determine the taxonomy for GET and POST requests in edit-tags.php. Props nacin. fixes #19131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r19119 r19253  
    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;
    20 
    21 $tax = get_taxonomy( $taxonomy );
     15$tax = get_taxonomy( $taxnow );
    2216
    2317if ( ! $tax )
Note: See TracChangeset for help on using the changeset viewer.