Skip to content

Commit

Permalink
Post Formats: Remove the post format icons from the post list table.
Browse files Browse the repository at this point in the history
Props mukesh27, melchoyce, karmatosed, afercia, mapk.
Fixes #46591.


git-svn-id: https://develop.svn.wordpress.org/trunk@45136 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
pento committed Apr 8, 2019
1 parent 67ba14f commit e7a2bac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/wp-admin/includes/class-wp-posts-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1004,15 +1004,11 @@ public function column_title( $post ) {
$pad = str_repeat( '— ', $this->current_level );
echo '<strong>';

$format = get_post_format( $post->ID );
$format_classes = ( $format ) ? 'post-format-icon post-format-' . esc_attr( $format ) : '';

$title = _draft_or_post_title();

if ( $can_edit_post && $post->post_status != 'trash' ) {
printf(
'<a class="row-title %s" href="%s" aria-label="%s">%s%s</a>',
$format_classes,
'<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
get_edit_post_link( $post->ID ),
/* translators: %s: post title */
esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
Expand All @@ -1021,8 +1017,7 @@ public function column_title( $post ) {
);
} else {
printf(
'<span class="%s">%s%s</span>',
$format_classes,
'<span>%s%s</span>',
$pad,
$title
);
Expand Down

0 comments on commit e7a2bac

Please sign in to comment.