Changeset 48450
- Timestamp:
- 07/12/2020 11:34:18 AM (4 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r48424 r48450 88 88 89 89 if ( ! empty( $_REQUEST['mode'] ) ) { 90 $mode = 'ex tended' === $_REQUEST['mode'] ? 'extended' : 'list';90 $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; 91 91 set_user_setting( 'posts_list_mode', $mode ); 92 92 } … … 761 761 $mode = get_user_setting( 'posts_list_mode', 'list' ); 762 762 763 if ( 'ex tended' === $mode ) {763 if ( 'excerpt' === $mode ) { 764 764 $always_visible = true; 765 765 } -
trunk/src/wp-admin/includes/class-wp-list-table.php
r48424 r48450 167 167 if ( empty( $this->modes ) ) { 168 168 $this->modes = array( 169 'list' 170 'ex tended' => __( 'Extended view' ),169 'list' => __( 'Compact view' ), 170 'excerpt' => __( 'Extended view' ), 171 171 ); 172 172 } … … 525 525 $mode = get_user_setting( 'posts_list_mode', 'list' ); 526 526 527 if ( 'ex tended' === $mode ) {527 if ( 'excerpt' === $mode ) { 528 528 $always_visible = true; 529 529 } … … 656 656 $aria_current = ' aria-current="page"'; 657 657 } 658 658 659 printf( 659 660 "<a href='%s' class='%s' id='view-switch-$mode'$aria_current><span class='screen-reader-text'>%s</span></a>\n", -
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( -
trunk/src/wp-admin/includes/class-wp-screen.php
r48423 r48450 1334 1334 </label> 1335 1335 <label for="excerpt-view-mode"> 1336 <input id="excerpt-view-mode" type="radio" name="mode" value="ex tended" <?php checked( 'extended', $mode ); ?> />1336 <input id="excerpt-view-mode" type="radio" name="mode" value="excerpt" <?php checked( 'excerpt', $mode ); ?> /> 1337 1337 <?php _e( 'Extended view' ); ?> 1338 1338 </label>
Note: See TracChangeset
for help on using the changeset viewer.