mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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.
git-svn-id: http://core.svn.wordpress.org/trunk@23396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dab5a6ef7d
commit
ddd1b94184
@ -653,9 +653,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
?>
|
||||
<td <?php echo $attributes ?>><?php
|
||||
if ( get_post_format( $post->ID ) )
|
||||
echo get_post_format_string( get_post_format( $post->ID ) );
|
||||
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 ) ) );
|
||||
else
|
||||
echo get_post_format_string( 'standard' );
|
||||
echo '—';
|
||||
?></td>
|
||||
<?php
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user