- Timestamp:
- 07/10/2020 04:02:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r48417 r48424 62 62 63 63 /** 64 * @global string $mode List table view mode. 64 65 * @global WP_Query $wp_query WordPress Query object. 65 66 * @global array $post_mime_types 66 67 * @global array $avail_post_mime_types 67 * @global string $mode68 68 */ 69 69 public function prepare_items() { 70 global $wp_query, $post_mime_types, $avail_post_mime_types, $mode; 70 global $mode, $wp_query, $post_mime_types, $avail_post_mime_types; 71 72 $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode']; 71 73 72 74 // Exclude attachments scheduled for deletion in the next two hours … … 96 98 97 99 $this->is_trash = isset( $_REQUEST['attachment-filter'] ) && 'trash' === $_REQUEST['attachment-filter']; 98 99 $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode'];100 100 101 101 $this->set_pagination_args(
Note: See TracChangeset
for help on using the changeset viewer.