Changeset 48670
- Timestamp:
- 07/28/2020 04:53:03 PM (4 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 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 -
trunk/src/wp-admin/includes/class-wp-screen.php
r48668 r48670 1314 1314 } 1315 1315 1316 $mode = get_user_setting( 'posts_list_mode', 'list' ); 1316 if ( ! isset( $mode ) ) { 1317 $mode = get_user_setting( 'posts_list_mode', 'list' ); 1318 } 1317 1319 1318 1320 // This needs a submit button.
Note: See TracChangeset
for help on using the changeset viewer.