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:
parent
03582ad585
commit
911530b2fe
@ -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 “%s”' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
|
$actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user