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:
parent
1a3a511688
commit
527378f82a
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue