Changeset 34331
- Timestamp:
- 09/19/2015 06:16:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r34271 r34331 201 201 */ 202 202 protected function is_base_request() { 203 if ( empty( $_GET ) ) { 203 $vars = $_GET; 204 unset( $vars['paged'] ); 205 206 if ( empty( $vars ) ) { 204 207 return true; 205 } elseif ( 1 === count( $ _GET ) && ! empty( $_GET['post_type'] ) ) {206 return $this->screen->post_type === $ _GET['post_type'];207 } 208 209 return 1 === count( $ _GET ) && ! empty( $_GET['mode'] );208 } elseif ( 1 === count( $vars ) && ! empty( $vars['post_type'] ) ) { 209 return $this->screen->post_type === $vars['post_type']; 210 } 211 212 return 1 === count( $vars ) && ! empty( $vars['mode'] ); 210 213 } 211 214
Note: See TracChangeset
for help on using the changeset viewer.