Make WordPress Core

Ticket #9674: inline-edit-tags.diff

File inline-edit-tags.diff, 1.0 KB (added by prettyboymp, 15 years ago)

only show tags in inline-edit for post_types that support them

  • wp-admin/includes/template.php

     
    10101010                </ul>
    10111011        </div></fieldset>
    10121012
    1013 <?php endif; // !hierarchical && !$bulk ?>
     1013<?php endif; // is_object_in_taxonomy($screen->post_type, 'category') && !$bulk ?>
    10141014
    10151015        <fieldset class="inline-edit-col-right"><div class="inline-edit-col">
    10161016
     
    10521052                        </select>
    10531053                </label>
    10541054
    1055 <?php elseif ( !$bulk ) : // $is_page ?>
     1055<?php endif; // $post_type_object->hierarchical ?>
    10561056
     1057<?php if ( is_object_in_taxonomy($screen->post_type, 'category') && !$bulk ) : ?>
     1058
    10571059                <label class="inline-edit-tags">
    10581060                        <span class="title"><?php _e( 'Tags' ); ?></span>
    10591061                        <textarea cols="22" rows="1" name="tags_input" class="tags_input"></textarea>
    10601062                </label>
    10611063
    1062 <?php endif; // $is_page  ?>
     1064<?php endif; // is_object_in_taxonomy($screen->post_type, 'category') && !$bulk  ?>
    10631065
    10641066<?php if ( $bulk ) : ?>
    10651067