Make WordPress Core

Ticket #18716: 18716.patch

File 18716.patch, 706 bytes (added by ocean90, 15 years ago)

Same as in edit.php for post type

  • wp-admin/edit-tags.php

     
    88
    99/** WordPress Administration Bootstrap */
    1010require_once('./admin.php');
    11 $tax = get_taxonomy( $taxnow );
     11
     12if ( ! isset( $_GET['taxonomy'] ) )
     13        $taxonomy = 'post_tag';
     14elseif ( in_array( $_GET['taxonomy'], get_taxonomies( array('show_ui' => true ) ) ) )
     15        $taxonomy = $_GET['taxonomy'];
     16else
     17        wp_die( __( 'Invalid taxonomy' ) );
     18
     19$_GET['taxonomy'] = $taxonomy;
     20
     21$tax = get_taxonomy( $taxonomy );
     22
    1223if ( !current_user_can( $tax->cap->manage_terms ) )
    1324        wp_die( __( 'Cheatin’ uh?' ) );
    1425