WordPress.org

Make WordPress Core

Changeset 45136


Ignore:
Timestamp:
04/08/2019 06:03:58 AM (7 months ago)
Author:
pento
Message:

Post Formats: Remove the post format icons from the post list table.

Props mukesh27, melchoyce, karmatosed, afercia, mapk.
Fixes #46591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r44961 r45136  
    10051005        echo '<strong>';
    10061006
    1007         $format         = get_post_format( $post->ID );
    1008         $format_classes = ( $format ) ? 'post-format-icon post-format-' . esc_attr( $format ) : '';
    1009 
    10101007        $title = _draft_or_post_title();
    10111008
    10121009        if ( $can_edit_post && $post->post_status != 'trash' ) {
    10131010            printf(
    1014                 '<a class="row-title %s" href="%s" aria-label="%s">%s%s</a>',
    1015                 $format_classes,
     1011                '<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
    10161012                get_edit_post_link( $post->ID ),
    10171013                /* translators: %s: post title */
     
    10221018        } else {
    10231019            printf(
    1024                 '<span class="%s">%s%s</span>',
    1025                 $format_classes,
     1020                '<span>%s%s</span>',
    10261021                $pad,
    10271022                $title
Note: See TracChangeset for help on using the changeset viewer.