mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-26 18:21:30 +01:00
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:
parent
556a4b2a05
commit
53d6b4e598
@ -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
Block a user