Ticket #21871: 21871.4.diff

File 21871.4.diff, 774 bytes (added by nacin, 8 months ago)
  • wp-admin/includes/screen.php

     
    475475                                                        $post_type = $post->post_type; 
    476476                                        } 
    477477                                        break; 
    478                                 case 'edit-tags' : 
    479                                         if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) 
    480                                                 $post_type = 'post'; 
    481                                         break; 
    482478                        } 
    483479                } 
    484480 
     
    494490                                $id .= '-' . $post_type; 
    495491                                break; 
    496492                        case 'edit-tags' : 
     493                                if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) 
     494                                        $post_type = 'post'; 
    497495                                if ( null === $taxonomy ) 
    498496                                        $taxonomy = 'post_tag'; 
    499497                                $id = 'edit-' . $taxonomy;