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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-11-11 15:44:16 +00:00
parent 4c837e9522
commit 73432f9c5a
1 changed files with 2 additions and 8 deletions

View File

@ -9,16 +9,10 @@
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( ! isset( $_GET['taxonomy'] ) )
$taxonomy = 'post_tag';
elseif ( in_array( $_GET['taxonomy'], get_taxonomies() ) )
$taxonomy = sanitize_key( $_GET['taxonomy'] );
else
if ( ! $taxnow )
wp_die( __( 'Invalid taxonomy' ) );
$_GET['taxonomy'] = $taxonomy;
$tax = get_taxonomy( $taxonomy );
$tax = get_taxonomy( $taxnow );
if ( ! $tax )
wp_die( __( 'Invalid taxonomy' ) );