Opened 19 years ago
Closed 18 years ago
#2762 closed defect (bug) (worksforme)
manage_posts_custom_column bug
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
Does your add_action call include the fourth parameter: number of args?