Make WordPress Core

Ticket #38296: 38296.patch

File 38296.patch, 609 bytes (added by joelcj91, 8 years ago)

Patch to remove variable duplication

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

     
    515515                $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
    516516                foreach ( $actions as $action => $link ) {
    517517                        ++$i;
    518                         ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
     518                        $sep = ( $i == $action_count ) ? '' : ' | ';
    519519                        $out .= "<span class='$action'>$link$sep</span>";
    520520                }
    521521                $out .= '</div>';