Limit post format UI to posts only, for now. see #14746

git-svn-id: https://develop.svn.wordpress.org/trunk@16188 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-11-04 18:02:24 +00:00
parent 018429a9f6
commit e381bc093f
1 changed files with 2 additions and 1 deletions

View File

@ -155,6 +155,7 @@ echo esc_html( $visibility_trans ); ?></span>
</div><?php // /misc-pub-section ?>
<?php
if ( 'post' == $post->post_type && current_theme_supports( 'post-formats' ) ) :
$post_formats = get_theme_support( 'post-formats' );
if ( is_array( $post_formats[0] ) ) :
@ -179,7 +180,7 @@ if ( is_array( $post_formats[0] ) ) :
<a href="#post-formats" class="cancel-post-format hide-if-no-js"><?php _e('Cancel'); ?></a>
</div>
</div><?php // /misc-pub-section ?>
<?php endif; ?>
<?php endif; endif; ?>
<?php