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: https://develop.svn.wordpress.org/trunk@23396 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e419f6258c
commit
a601e170aa
|
@ -653,9 +653,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
?>
|
?>
|
||||||
<td <?php echo $attributes ?>><?php
|
<td <?php echo $attributes ?>><?php
|
||||||
if ( get_post_format( $post->ID ) )
|
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
|
else
|
||||||
echo get_post_format_string( 'standard' );
|
echo '—';
|
||||||
?></td>
|
?></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue