Make WordPress Core


Ignore:
Timestamp:
07/10/2020 04:02:00 PM (4 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/dashboard.php

    r48191 r48424  
    757757
    758758        $i = 0;
     759
    759760        foreach ( $actions as $action => $link ) {
    760761            ++$i;
    761762
    762             if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i ) || 1 === $i ) {
     763            if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i )
     764                || 1 === $i
     765            ) {
    763766                $sep = '';
    764767            } else {
Note: See TracChangeset for help on using the changeset viewer.