Ticket #18706: 18706.patch

File 18706.patch, 586 bytes (added by SergeyBiryukov, 20 months ago)
  • wp-admin/includes/class-wp-terms-list-table.php

     
    2424 
    2525                $tax = get_taxonomy( $taxonomy ); 
    2626 
    27                 if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'public' => true ) ) ) ) 
     27                if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'show_ui' => true ) ) ) ) 
    2828                        $post_type = 'post'; 
    2929 
    3030                parent::__construct( array(