WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/05/2010 03:04:13 AM (11 years ago)
Author:
markjaquith
Message:

get_post_format_string() to get nice version of a post format slug. Try appending post format as a post-status label. Enclose in square brackets to help it stand out. Remove post format strings filter. If this is going to be standard, it should be standard. see #14746

File:
1 edited

Legend:

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

    r16190 r16198  
    16091609    if ( is_sticky($post->ID) )
    16101610        $post_states[] = __('Sticky');
     1611    if ( get_post_format( $post->ID ) )
     1612        $post_states[] = '<span>[</span>' . get_post_format_string( get_post_format( $post->ID ) ) . '<span>]</span>';
    16111613
    16121614    $post_states = apply_filters( 'display_post_states', $post_states );
Note: See TracChangeset for help on using the changeset viewer.