Make WordPress Core

Ticket #26948: taxonomy_quick_edit2.diff

File taxonomy_quick_edit2.diff, 1.3 KB (added by hlashbrooke, 11 years ago)

Renaming arg and defaulting to null

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

     
    754754                foreach ( $taxonomy_names as $taxonomy_name ) {
    755755                        $taxonomy = get_taxonomy( $taxonomy_name );
    756756
    757                         if ( !$taxonomy->show_ui )
     757                        if ( !$taxonomy->show_ui || !$taxonomy->show_in_quick_edit )
    758758                                continue;
    759759
    760760                        if ( $taxonomy->hierarchical )
  • wp-includes/taxonomy.php

     
    338338                'show_in_menu'          => null,
    339339                'show_in_nav_menus'     => null,
    340340                'show_tagcloud'         => null,
     341                'show_in_quick_edit'    => null,
    341342                'show_admin_column'     => false,
    342343                'meta_box_cb'           => null,
    343344                'capabilities'          => array(),
     
    394395        if ( null === $args['show_tagcloud'] )
    395396                $args['show_tagcloud'] = $args['show_ui'];
    396397
     398        // If not set, default to the setting for show_ui.
     399        if ( null === $args['show_in_quick_edit'] )
     400                $args['show_in_quick_edit'] = $args['show_ui'];
     401
    397402        $default_caps = array(
    398403                'manage_terms' => 'manage_categories',
    399404                'edit_terms'   => 'manage_categories',