Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24476 closed defect (bug) (fixed)

manage_media_custom_column action no longer being passed post id

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

Description

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 13 years ago.
Replaces $id with $post->ID

Download all attachments as: .zip

Change History (3)

@nickdaugherty
13 years ago

Replaces $id with $post->ID

#1 @nacin
13 years ago

  • Milestone Awaiting Review3.6

Thanks.

#2 @ocean90
13 years ago

  • Owner set to ocean90
  • Resolutionfixed
  • Status newclosed

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.