only show tags in inline-edit for post_types that support them. Props prettyboymp. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
730f87bf97
commit
e2bec6bd60
|
@ -1010,7 +1010,7 @@ function inline_edit_row( $screen ) {
|
||||||
</ul>
|
</ul>
|
||||||
</div></fieldset>
|
</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">
|
<fieldset class="inline-edit-col-right"><div class="inline-edit-col">
|
||||||
|
|
||||||
|
@ -1052,14 +1052,16 @@ function inline_edit_row( $screen ) {
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</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">
|
<label class="inline-edit-tags">
|
||||||
<span class="title"><?php _e( 'Tags' ); ?></span>
|
<span class="title"><?php _e( 'Tags' ); ?></span>
|
||||||
<textarea cols="22" rows="1" name="tags_input" class="tags_input"></textarea>
|
<textarea cols="22" rows="1" name="tags_input" class="tags_input"></textarea>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<?php endif; // $is_page ?>
|
<?php endif; // is_object_in_taxonomy($screen->post_type, 'post_tag') && !$bulk ?>
|
||||||
|
|
||||||
<?php if ( $bulk ) : ?>
|
<?php if ( $bulk ) : ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue