Skip to content

Commit 3e3024b

Browse files
committed
Media: Remove Comments column from Media list view when attachment pages are not enabled.
Developed in WordPress/wordpress-develop#10471 Follow-up to [56657]. Props akshat2802, knutsp, shailu25, soyebsalar01, westonruter. See #57913. Fixes #64201. Built from https://develop.svn.wordpress.org/trunk@61268 git-svn-id: https://core.svn.wordpress.org/trunk@60580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent f0a4cc0 commit 3e3024b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wp-admin/includes/class-wp-media-list-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function get_columns() {
367367
if ( ! $this->detached ) {
368368
$posts_columns['parent'] = _x( 'Uploaded to', 'column name' );
369369

370-
if ( post_type_supports( 'attachment', 'comments' ) ) {
370+
if ( post_type_supports( 'attachment', 'comments' ) && get_option( 'wp_attachment_pages_enabled' ) ) {
371371
$posts_columns['comments'] = sprintf(
372372
'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
373373
esc_attr__( 'Comments' ),

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61267';
19+
$wp_version = '7.0-alpha-61268';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)