Make WordPress Core


Ignore:
Timestamp:
07/12/2020 11:34:18 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Administration: Restore the excerpt key for the Extended view mode for backward compatibility for now.

Props Offereins.
See #49715.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r48424 r48450  
    167167        if ( empty( $this->modes ) ) {
    168168            $this->modes = array(
    169                 'list'     => __( 'Compact view' ),
    170                 'extended' => __( 'Extended view' ),
     169                'list'    => __( 'Compact view' ),
     170                'excerpt' => __( 'Extended view' ),
    171171            );
    172172        }
     
    525525        $mode = get_user_setting( 'posts_list_mode', 'list' );
    526526
    527         if ( 'extended' === $mode ) {
     527        if ( 'excerpt' === $mode ) {
    528528            $always_visible = true;
    529529        }
     
    656656                $aria_current = ' aria-current="page"';
    657657            }
     658
    658659            printf(
    659660                "<a href='%s' class='%s' id='view-switch-$mode'$aria_current><span class='screen-reader-text'>%s</span></a>\n",
Note: See TracChangeset for help on using the changeset viewer.