diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index bdd24a62ec..95b83010e8 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -839,10 +839,11 @@ class WP_Posts_List_Table extends WP_List_Table { post_type, 'author' ) && $bulk ) echo $authors_dropdown; - ?> - hierarchical ) : ?> + if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : + if ( $post_type_object->hierarchical ) : + ?> - post_type, 'page-attributes' ) ) : + - + post_type ) : + ?> hierarchical ?> + endif; // page post_type + endif; // page-attributes + ?>