Make WordPress Core


Ignore:
Timestamp:
02/12/2009 12:19:42 AM (16 years ago)
Author:
ryan
Message:

Bail if invalid taxonomy given

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r10555 r10556  
    1616if ( empty($taxonomy) )
    1717    $taxonomy = 'post_tag';
     18
     19if ( !is_taxonomy($taxonomy) )
     20    wp_die(__('Invalid taxonomy'));
    1821
    1922if ( isset( $_GET['action'] ) && isset($_GET['delete_tags']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
Note: See TracChangeset for help on using the changeset viewer.