WordPress.org

Make WordPress Core

Changeset 16645


Ignore:
Timestamp:
12/01/2010 12:31:27 PM (9 years ago)
Author:
westi
Message:

Don't show the Post Format if the current theme doesn't support them. Fixes #15625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r16568 r16645  
    16051605    if ( is_sticky($post->ID) )
    16061606        $post_states[] = __('Sticky');
    1607     if ( get_post_format( $post->ID ) )
     1607    if ( current_theme_supports('post-formats') && get_post_format( $post->ID ) )
    16081608        $post_states[] = '<span>[</span>' . get_post_format_string( get_post_format( $post->ID ) ) . '<span>]</span>';
    16091609
Note: See TracChangeset for help on using the changeset viewer.