Ticket #21871: 21871-minimal.diff

File 21871-minimal.diff, 646 bytes (added by ryan, 8 months ago)

Minimal fix for edit-tags

  • wp-admin/includes/screen.php

     
    496496                        case 'edit-tags' : 
    497497                                if ( null === $taxonomy ) 
    498498                                        $taxonomy = 'post_tag'; 
     499                                // The edit-tags ID does not contain the post type. Look for it in the request. 
     500                                if ( null === $post_type ) { 
     501                                        $post_type = 'post'; 
     502                                        if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) 
     503                                                $post_type = $_REQUEST['post_type']; 
     504                                } 
     505 
    499506                                $id = 'edit-' . $taxonomy; 
    500507                                break; 
    501508                }