From f6128eb7e6a467725ecf40e6157ea6df14bf4202 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 8 Apr 2019 06:04:50 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-posts-list-table.php | 9 ++------- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index b6dac84bc8..717e84fb9a 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -1004,15 +1004,11 @@ class WP_Posts_List_Table extends WP_List_Table { $pad = str_repeat( '— ', $this->current_level ); echo ''; - $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( - '%s%s', - $format_classes, + '%s%s', 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( - '%s%s', - $format_classes, + '%s%s', $pad, $title ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ad2cfa0eab..a2152195a9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.