Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24476 closed defect (bug) (fixed)

manage_media_custom_column action no longer being passed post id

Reported by: nickdaugherty's profile nickdaugherty Owned by: ocean90's profile ocean90
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: General Keywords: has-patch
Focuses: Cc:


The manage_media_custom_column action, called in display_rows() in /wp-admin/includes/class-wp-media-list-table.php is being passed $id, which was removed in [24337]. This causes any custom columns to not be passed the id correctly.

Attached is a patch to replace $id with $post->ID to correctly pass the id to the action.

Attachments (1)

manage_media_custom_column_action.diff (504 bytes) - added by nickdaugherty 11 years ago.
Replaces $id with $post->ID

Download all attachments as: .zip

Change History (3)

11 years ago

Replaces $id with $post->ID

#1 @nacin
11 years ago

  • Milestone changed from Awaiting Review to 3.6


#2 @ocean90
11 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 24396:

Replace the global $id from manage_media_custom_column action with $post-ID. Missed in [24337]. props nickdaugherty. fixes #24476.

Note: See TracTickets for help on using tickets.