Bail if invalid taxonomy given

git-svn-id: https://develop.svn.wordpress.org/trunk@10556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-02-12 00:19:42 +00:00
parent 1a3a511688
commit 527378f82a
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ wp_reset_vars( array('action', 'tag', 'taxonomy') );
if ( empty($taxonomy) )
$taxonomy = 'post_tag';
if ( !is_taxonomy($taxonomy) )
wp_die(__('Invalid taxonomy'));
if ( isset( $_GET['action'] ) && isset($_GET['delete_tags']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
$action = 'bulk-delete';