Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

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

    r45147 r45583  
    378378        $title      = _draft_or_post_title();
    379379        $thumb      = wp_get_attachment_image( $post->ID, array( 60, 60 ), true, array( 'alt' => '' ) );
    380         $link_start = $link_end = '';
     380        $link_start = '';
     381        $link_end   = '';
    381382
    382383        if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) {
     
    453454            $m_time = $post->post_date;
    454455            $time   = get_post_time( 'G', true, $post, false );
    455             if ( ( abs( $t_diff = time() - $time ) ) < DAY_IN_SECONDS ) {
     456            $t_diff = time() - $time;
     457            if ( ( abs( $t_diff ) ) < DAY_IN_SECONDS ) {
    456458                if ( $t_diff < 0 ) {
    457459                    $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) );
Note: See TracChangeset for help on using the changeset viewer.