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

git-svn-id: http://core.svn.wordpress.org/trunk@24396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2013-06-01 09:40:00 +00:00
parent 1c84a1fe92
commit 9c5c9dc805

View File

@ -377,7 +377,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
}
?>
<td <?php echo $attributes ?>>
<?php do_action( 'manage_media_custom_column', $column_name, $id ); ?>
<?php do_action( 'manage_media_custom_column', $column_name, $post->ID ); ?>
</td>
<?php
break;