Bail if invalid taxonomy given

git-svn-id: http://svn.automattic.com/wordpress/trunk@10556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-02-12 00:19:42 +00:00
parent 556a4b2a05
commit 53d6b4e598

View File

@ -16,6 +16,9 @@ wp_reset_vars( array('action', 'tag', 'taxonomy') );
if ( empty($taxonomy) ) if ( empty($taxonomy) )
$taxonomy = 'post_tag'; $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'] ) ) if ( isset( $_GET['action'] ) && isset($_GET['delete_tags']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
$action = 'bulk-delete'; $action = 'bulk-delete';