- Timestamp:
- 07/28/2020 04:53:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r48594 r48670 79 79 80 80 /** 81 * @global string $mode List table view mode. 81 82 * @global int $post_id 82 83 * @global string $comment_status … … 85 86 */ 86 87 public function prepare_items() { 87 global $ post_id, $comment_status, $comment_type, $search;88 global $mode, $post_id, $comment_status, $comment_type, $search; 88 89 89 90 if ( ! empty( $_REQUEST['mode'] ) ) { 90 91 $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; 91 92 set_user_setting( 'posts_list_mode', $mode ); 93 } else { 94 $mode = get_user_setting( 'posts_list_mode', 'list' ); 92 95 } 93 96
Note: See TracChangeset
for help on using the changeset viewer.