diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
index 95b8301..5c30b07 100644
|
a
|
b
|
|
| 8 | 8 | * @access private |
| 9 | 9 | */ |
| 10 | 10 | class WP_Posts_List_Table extends WP_List_Table { |
| 11 | | |
| 12 | 11 | /** |
| 13 | 12 | * Whether the items should be displayed hierarchically or linearly |
| 14 | 13 | * |
| … |
… |
class WP_Posts_List_Table extends WP_List_Table { |
| 86 | 85 | } |
| 87 | 86 | |
| 88 | 87 | function prepare_items() { |
| 89 | | global $post_type_object, $post_type, $avail_post_stati, $wp_query, $per_page, $mode; |
| | 88 | global $post_type_object, $avail_post_stati, $wp_query, $per_page, $mode; |
| 90 | 89 | |
| 91 | 90 | $avail_post_stati = wp_edit_posts_query(); |
| 92 | 91 | |
| … |
… |
class WP_Posts_List_Table extends WP_List_Table { |
| 94 | 93 | |
| 95 | 94 | $total_items = $this->hierarchical_display ? $wp_query->post_count : $wp_query->found_posts; |
| 96 | 95 | |
| 97 | | $per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' ); |
| 98 | | $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); |
| | 96 | $per_page = $this->get_items_per_page( 'edit_' . $post_type_object->name . '_per_page' ); |
| | 97 | $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type_object->name ); |
| 99 | 98 | |
| 100 | 99 | if ( $this->hierarchical_display ) |
| 101 | 100 | $total_pages = ceil( $total_items / $per_page ); |
| … |
… |
class WP_Posts_List_Table extends WP_List_Table { |
| 127 | 126 | } |
| 128 | 127 | |
| 129 | 128 | function get_views() { |
| 130 | | global $post_type, $post_type_object, $locked_post_status, $avail_post_stati; |
| | 129 | global $post_type_object, $locked_post_status, $avail_post_stati; |
| | 130 | |
| | 131 | $post_type = $post_type_object->name; |
| 131 | 132 | |
| 132 | 133 | if ( !empty($locked_post_status) ) |
| 133 | 134 | return array(); |
| … |
… |
class WP_Posts_List_Table extends WP_List_Table { |
| 202 | 203 | } |
| 203 | 204 | |
| 204 | 205 | function extra_tablenav( $which ) { |
| 205 | | global $post_type, $post_type_object, $cat; |
| | 206 | global $post_type_object, $cat; |
| | 207 | |
| | 208 | $post_type = $post_type_object->name; |
| | 209 | |
| 206 | 210 | ?> |
| 207 | 211 | <div class="alignleft actions"> |
| 208 | 212 | <?php |
| … |
… |
class WP_Posts_List_Table extends WP_List_Table { |
| 857 | 861 | |
| 858 | 862 | <?php |
| 859 | 863 | endif; // hierarchical |
| 860 | | |
| | 864 | |
| 861 | 865 | if ( !$bulk ) : ?> |
| 862 | 866 | |
| 863 | 867 | <label> |