Make WordPress Core

Ticket #26948: class-wp-posts-list-table.diff

File class-wp-posts-list-table.diff, 1022 bytes (added by hlashbrooke, 11 years ago)

First pass at class-wp-posts-list-table.php

  • class-wp-posts-list-table.php

     
    752752                $hierarchical_taxonomies = array();
    753753                $flat_taxonomies = array();
    754754                foreach ( $taxonomy_names as $taxonomy_name ) {
    755                         $taxonomy = get_taxonomy( $taxonomy_name );
    756755
    757                         if ( !$taxonomy->show_ui )
    758                                 continue;
     756                        $show_taxonomy = apply_filters( 'quick_edit_show_taxonomy', true, $taxonomy_name, $screen->post_type );
    759757
    760                         if ( $taxonomy->hierarchical )
    761                                 $hierarchical_taxonomies[] = $taxonomy;
    762                         else
    763                                 $flat_taxonomies[] = $taxonomy;
     758                        if( $show_taxonomy ) {
     759                                $taxonomy = get_taxonomy( $taxonomy_name );
     760
     761                                if ( !$taxonomy->show_ui )
     762                                        continue;
     763
     764                                if ( $taxonomy->hierarchical )
     765                                        $hierarchical_taxonomies[] = $taxonomy;
     766                                else
     767                                        $flat_taxonomies[] = $taxonomy;
     768                        }
    764769                }
    765770
    766771                $m = ( isset( $mode ) && 'excerpt' == $mode ) ? 'excerpt' : 'list';