- Timestamp:
- 07/07/2020 07:10:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r48352 r48398 123 123 if ( $doing_ajax && isset( $_REQUEST['offset'] ) ) { 124 124 $start += $_REQUEST['offset']; 125 } 126 127 if ( ! empty( $_REQUEST['mode'] ) ) { 128 $mode = 'extended' === $_REQUEST['mode'] ? 'extended' : 'list'; 129 set_user_setting( 'posts_list_mode', $mode ); 130 } else { 131 $mode = get_user_setting( 'posts_list_mode', 'list' ); 125 132 } 126 133 … … 752 759 $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); 753 760 761 $always_visible = false; 762 $mode = get_user_setting( 'posts_list_mode', 'list' ); 763 if ( 'extended' === $mode ) { 764 $always_visible = true; 765 } 766 754 767 $i = 0; 755 $out .= '<div class=" row-actions">';768 $out .= '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">'; 756 769 foreach ( $actions as $action => $link ) { 757 770 ++$i;
Note: See TracChangeset
for help on using the changeset viewer.