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

git-svn-id: https://develop.svn.wordpress.org/trunk@17278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-13 01:21:30 +00:00
parent 03582ad585
commit 911530b2fe

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['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 ); echo $this->row_actions( $actions );
get_inline_data( $post ); get_inline_data( $post );