Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#2762 closed defect (bug) (worksforme)

manage_posts_custom_column bug

Reported by: kriz's profile kriz Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.2
Component: General Keywords: manage_posts_custom_column
Focuses: Cc:

Description

If you use the manage_posts_custom_column action, in your function you won't get the post id. wp-admin/edit.php row 219:

<td><?php do_action('manage_posts_custom_column', $column_name, $id); ?></td>

I think it should be this:

<td><?php do_action('manage_posts_custom_column', array($column_name, $post->ID)); ?></td>

Change History (2)

#1 @skeltoac
19 years ago

Does your add_action call include the fourth parameter: number of args?

#2 @foolswisdom
18 years ago

  • Milestone 2.0.3 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

No response to Andy's question four months ago. Marking WORKSFORME for now.

Note: See TracTickets for help on using tickets.