WordPress.org

Make WordPress Core

Changeset 23396


Ignore:
Timestamp:
02/08/2013 06:34:51 PM (5 years ago)
Author:
markjaquith
Message:

Link post formats in posts list table. Use a dash for standard, like we do for absence of tags. see #16047 Next: use icons, not text descriptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r23392 r23396  
    654654            <td <?php echo $attributes ?>><?php
    655655                if ( get_post_format( $post->ID ) )
    656                     echo get_post_format_string( get_post_format( $post->ID ) );
     656                    printf( '<a href="%s">%s</a>', add_query_arg( array( 'post_format' => get_post_format( $post->ID ), 'post_type' => $post->post_type ), 'edit.php' ), get_post_format_string( get_post_format( $post->ID ) ) );
    657657                else
    658                     echo get_post_format_string( 'standard' );
     658                    echo '&#8212;';
    659659            ?></td>
    660660            <?php
Note: See TracChangeset for help on using the changeset viewer.