only show tags in inline-edit for post_types that support them. Props prettyboymp. see #9674

git-svn-id: https://develop.svn.wordpress.org/trunk@13389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-02-24 22:13:23 +00:00
parent c5ed3410f1
commit 6d3878f6b7
1 changed files with 5 additions and 3 deletions

View File

@ -1010,7 +1010,7 @@ function inline_edit_row( $screen ) {
</ul>
</div></fieldset>
<?php endif; // !hierarchical && !$bulk ?>
<?php endif; // is_object_in_taxonomy($screen->post_type, 'category') && !$bulk ?>
<fieldset class="inline-edit-col-right"><div class="inline-edit-col">
@ -1052,14 +1052,16 @@ function inline_edit_row( $screen ) {
</select>
</label>
<?php elseif ( !$bulk ) : // $is_page ?>
<?php endif; // $post_type_object->hierarchical ?>
<?php if ( is_object_in_taxonomy($screen->post_type, 'post_tag') && !$bulk ) : ?>
<label class="inline-edit-tags">
<span class="title"><?php _e( 'Tags' ); ?></span>
<textarea cols="22" rows="1" name="tags_input" class="tags_input"></textarea>
</label>
<?php endif; // $is_page ?>
<?php endif; // is_object_in_taxonomy($screen->post_type, 'post_tag') && !$bulk ?>
<?php if ( $bulk ) : ?>