Make WordPress Core

Ticket #28232: 28232.diff

File 28232.diff, 1.6 KB (added by wonderboymusic, 11 years ago)
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    218218                                wp_dropdown_categories( $dropdown_options );
    219219                        }
    220220
     221                        $others = wp_list_filter( get_taxonomies( array( 'show_admin_filter' => true ), 'objects' ), array( 'name' => 'category' ), 'NOT' );
     222                        foreach ( $others as $other ) {
     223                                if ( is_object_in_taxonomy( $this->screen->post_type, $other->name ) ) {
     224                                        $dropdown_options = array(
     225                                                'taxonomy' => $other->name,
     226                                                'show_option_all' => __( 'View all ' ) . $other->labels->name,
     227                                                'hide_empty' => 0,
     228                                                'hierarchical' => $other->hierarchical,
     229                                                'show_count' => 0,
     230                                                'orderby' => 'name',
     231                                                'name' => $other->query_var,
     232                                                'selected' => get_query_var( $other->query_var )
     233                                        );
     234                                        wp_dropdown_categories( $dropdown_options );
     235                                }
     236                        }
     237
    221238                        /**
    222239                         * Fires before the Filter button on the Posts and Pages list tables.
    223240                         *
  • src/wp-includes/taxonomy.php

     
    337337                'show_in_nav_menus'     => null,
    338338                'show_tagcloud'         => null,
    339339                'show_admin_column'     => false,
     340                'show_admin_filter'     => false,
    340341                'meta_box_cb'           => null,
    341342                'capabilities'          => array(),
    342343                'rewrite'               => true,