Use is_post_type_hierarchical() instead of hierarchical_display. fixes #16213.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-01-13 01:21:30 +00:00
parent 9c1f2901cd
commit d1c2b06a7e
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
}
$actions = apply_filters( $this->hierarchical_display ? 'page_row_actions' : 'post_row_actions', $actions, $post );
$actions = apply_filters( is_post_type_hierarchical( $post->post_type ) ? 'page_row_actions' : 'post_row_actions', $actions, $post );
echo $this->row_actions( $actions );
get_inline_data( $post );