WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/04/2010 04:58:43 PM (10 years ago)
Author:
ryan
Message:

More custom post type support. Props scribu. see #9674

File:
1 edited

Legend:

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

    r12546 r12597  
    2020    wp_die(__('Invalid taxonomy'));
    2121
    22 $parent_file = 'edit.php';
    23 $submenu_file = "edit-tags.php?taxonomy=$taxonomy";
     22if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('_show' => true) ) ) )
     23    $post_type = $_GET['post_type'];
     24else
     25    $post_type = 'post';
     26
     27if ( 'post' != $post_type ) {
     28    $parent_file = "edit.php?post_type=$post_type";
     29    $submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type";
     30} else {
     31    $parent_file = 'edit.php';
     32    $submenu_file = "edit-tags.php?taxonomy=$taxonomy";
     33}
    2434
    2535if ( isset( $_GET['action'] ) && isset($_GET['delete_tags']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
Note: See TracChangeset for help on using the changeset viewer.