Make WordPress Core

Ticket #38296: 38296.3.diff

File 38296.3.diff, 604 bytes (added by audrasjb, 3 years ago)

Coding standards: Fix an inconsistency in the usage of ternary operators for the $sep variable/

  • src/wp-admin/includes/class-wp-ms-sites-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-ms-sites-list-table.php b/src/wp-admin/includes/class-wp-ms-sites-list-table.php
    index 64cab8cecb..a1ec76b6de 100644
    a b class WP_MS_Sites_List_Table extends WP_List_Table { 
    647647                        echo ' — ';
    648648                        foreach ( $site_states as $state ) {
    649649                                ++$i;
    650                                 ( $i == $state_count ) ? $sep = '' : $sep = ', ';
     650                                $sep = ( $i == $state_count ) ? '' : ', ';
    651651                                echo "<span class='post-state'>{$state}{$sep}</span>";
    652652                        }
    653653                }