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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2010-11-04 18:02:24 +00:00
parent 4665c58087
commit d80160e0ae

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