Post Formats: Remove the post format icons from the post list table.
Props mukesh27, melchoyce, karmatosed, afercia, mapk. Fixes #46591. Built from https://develop.svn.wordpress.org/trunk@45136 git-svn-id: http://core.svn.wordpress.org/trunk@44945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cbdffc4a1e
commit
f6128eb7e6
|
@ -1004,15 +1004,11 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
$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( __( '“%s” (Edit)' ), $title ) ),
|
||||
|
@ -1021,8 +1017,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
);
|
||||
} else {
|
||||
printf(
|
||||
'<span class="%s">%s%s</span>',
|
||||
$format_classes,
|
||||
'<span>%s%s</span>',
|
||||
$pad,
|
||||
$title
|
||||
);
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-beta1-45135';
|
||||
$wp_version = '5.2-beta1-45136';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue