WordPress.org

Make WordPress Core

Ticket #21856: 21856.2.patch

File 21856.2.patch, 624 bytes (added by CoenJacobs, 9 months ago)

Revised patch, tested against current trunk

  • wp-admin/includes/class-wp-posts-list-table.php

     
    203203 
    204204                        $this->months_dropdown( $this->screen->post_type ); 
    205205 
    206                         if ( is_object_in_taxonomy( $this->screen->post_type, 'category' ) ) { 
     206                        if ( is_object_in_taxonomy( $this->screen->post_type, 'category' ) && $this->has_items() ) { 
    207207                                $dropdown_options = array( 
    208208                                        'show_option_all' => __( 'View all categories' ), 
    209209                                        'hide_empty' => 0,