- Timestamp:
- 07/12/2020 11:34:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r48424 r48450 145 145 146 146 if ( ! empty( $_REQUEST['mode'] ) ) { 147 $mode = 'ex tended' === $_REQUEST['mode'] ? 'extended' : 'list';147 $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; 148 148 set_user_setting( 'posts_list_mode', $mode ); 149 149 } else { … … 1052 1052 echo "</strong>\n"; 1053 1053 1054 if ( ! is_post_type_hierarchical( $this->screen->post_type ) && 'extended' === $mode && current_user_can( 'read_post', $post->ID ) ) { 1054 if ( 'excerpt' === $mode 1055 && ! is_post_type_hierarchical( $this->screen->post_type ) 1056 && current_user_can( 'read_post', $post->ID ) 1057 ) { 1055 1058 if ( post_password_required( $post ) ) { 1056 1059 echo '<span class="protected-post-excerpt">' . esc_html( get_the_excerpt() ) . '</span>'; … … 1112 1115 * @param WP_Post $post Post object. 1113 1116 * @param string $column_name The column name. 1114 * @param string $mode The list display mode ('ex tended' or 'list').1117 * @param string $mode The list display mode ('excerpt' or 'list'). 1115 1118 */ 1116 1119 $status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode ); … … 1131 1134 * @param WP_Post $post Post object. 1132 1135 * @param string $column_name The column name. 1133 * @param string $mode The list display mode ('ex tended' or 'list').1136 * @param string $mode The list display mode ('excerpt' or 'list'). 1134 1137 */ 1135 1138 echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode ); … … 1501 1504 } 1502 1505 1503 $m = ( isset( $mode ) && 'ex tended' === $mode ) ? 'extended' : 'list';1506 $m = ( isset( $mode ) && 'excerpt' === $mode ) ? 'excerpt' : 'list'; 1504 1507 $can_publish = current_user_can( $post_type_object->cap->publish_posts ); 1505 1508 $core_columns = array(
Note: See TracChangeset
for help on using the changeset viewer.