Check post_type_supports before adding comments column to attachments. Translate a string. props johnbillion, SergeyBiryukov. fixes #18644.
git-svn-id: https://develop.svn.wordpress.org/trunk@18931 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f9bba8610d
commit
b827c657fb
@ -137,7 +137,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
/* translators: column name */
|
||||
if ( !$this->detached ) {
|
||||
$posts_columns['parent'] = _x( 'Attached to', 'column name' );
|
||||
$posts_columns['comments'] = '<span class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>';
|
||||
if ( post_type_supports( 'attachment', 'comments' ) )
|
||||
$posts_columns['comments'] = '<span class="vers"><img alt="' . esc_attr__( 'Comments' ) . '" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>';
|
||||
}
|
||||
/* translators: column name */
|
||||
$posts_columns['date'] = _x( 'Date', 'column name' );
|
||||
|
Loading…
Reference in New Issue
Block a user