Make WordPress Core


Ignore:
Timestamp:
07/10/2020 04:02:00 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Administration: Bring some consistency to handling list table view modes.

  • Remove duplicate variables and DocBlocks.
  • Add missing description for the $mode global.
  • Use sentence case for "Compact view" and "Extended view" labels.

Follow-up to [48398], [48423].

Props afercia, Offereins, SergeyBiryukov.
See #49715.

File:
1 edited

Legend:

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

    r47219 r48424  
    6363     * @since 3.1.0
    6464     *
     65     * @global string $mode List table view mode.
    6566     * @global string $s
    66      * @global string $mode
    6767     * @global wpdb   $wpdb WordPress database abstraction object.
    6868     */
    6969    public function prepare_items() {
    70         global $s, $mode, $wpdb;
     70        global $mode, $s, $wpdb;
    7171
    7272        if ( ! empty( $_REQUEST['mode'] ) ) {
     
    577577
    578578    /**
    579      * @global string $mode
     579     * @global string $mode List table view mode.
    580580     */
    581581    public function display_rows() {
Note: See TracChangeset for help on using the changeset viewer.