Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#18644 closed defect (bug) (fixed)

Media list table doesn't check for comment support

Reported by: johnbillion Owned by: nacin
Priority: normal Milestone: 3.3
Component: Media Version: 3.3
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

If you remove support for comments from attachments*, the Comment column is still displayed on the Media screen. This is inconsistent with posts and pages, where the column gets removed.

*

remove_post_type_support( 'attachment', 'comments' );

Attachments (2)

18644.patch​ (881 bytes ) - added by johnbillion 15 years ago.
18644.2.patch​ (897 bytes ) - added by SergeyBiryukov 15 years ago.

Download all attachments as: .zip

Change History (8)

#1 @johnbillion
15 years ago

  • Keywords has-patch added

Patch

#2 @nacin
15 years ago

  • Milestone Awaiting Review → 3.3
  • Owner set to nacin
  • Status new → accepted

#3 @jane
15 years ago

Yes, please fix this.

#4 @SergeyBiryukov
15 years ago

18644.2.patch​ also fixes missing i18n in alt text.

#5 @nacin
15 years ago

This should be esc_attr__ in the future.

#6 @nacin
15 years ago

  • Resolution → fixed
  • Status accepted → closed

In [18931]:

Check post_type_supports before adding comments column to attachments. Translate a string. props johnbillion, SergeyBiryukov. fixes #18644.

Note: See TracTickets for help on using tickets.