mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +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) )
|
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';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user