WordPress.org

Make WordPress Core

Ticket #18644: 18644.patch

File 18644.patch, 881 bytes (added by johnbillion, 4 years ago)
  • wp-admin/includes/class-wp-media-list-table.php

     
    137137                /* translators: column name */ 
    138138                if ( !$this->detached ) { 
    139139                        $posts_columns['parent'] = _x( 'Attached to', 'column name' ); 
    140                         $posts_columns['comments'] = '<span class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>'; 
     140                        if ( post_type_supports( 'attachment', 'comments' ) ) 
     141                                $posts_columns['comments'] = '<span class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>'; 
    141142                } 
    142143                /* translators: column name */ 
    143144                $posts_columns['date'] = _x( 'Date', 'column name' );