Make post column hooks consistent. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@16212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c914ad1731
commit
fa4ea77657
|
@ -656,7 +656,13 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
?>
|
?>
|
||||||
<td <?php echo $attributes ?>><?php do_action( 'manage_posts_custom_column', $column_name, $post->ID ); ?></td>
|
<td <?php echo $attributes ?>><?php
|
||||||
|
if ( 'page' == $post->post_type )
|
||||||
|
do_action( 'manage_pages_custom_column', $column_name, $post->ID );
|
||||||
|
else
|
||||||
|
do_action( 'manage_posts_custom_column', $column_name, $post->ID );
|
||||||
|
do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );
|
||||||
|
?></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue