Changeset 35683
- Timestamp:
- 11/18/2015 08:24:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r35682 r35683 152 152 if ( $this->hierarchical_display ) { 153 153 $total_items = $wp_query->post_count; 154 } elseif ( isset( $_REQUEST['s'] )) {154 } elseif ( $wp_query->found_posts || $this->get_pagenum() === 1 ) { 155 155 $total_items = $wp_query->found_posts; 156 156 } else { … … 173 173 } 174 174 175 $total_pages = ceil( $total_items / $per_page );176 177 175 if ( ! empty( $_REQUEST['mode'] ) ) { 178 176 $mode = $_REQUEST['mode'] === 'excerpt' ? 'excerpt' : 'list'; … … 186 184 $this->set_pagination_args( array( 187 185 'total_items' => $total_items, 188 'total_pages' => $total_pages,189 186 'per_page' => $per_page 190 187 ) );
Note: See TracChangeset
for help on using the changeset viewer.