Make WordPress Core


Ignore:
Timestamp:
10/19/2020 08:43:34 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in [49207].

See #46866.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r49207 r49209  
    38103810    $author = new WP_User( $attachment->post_author );
    38113811    if ( $author->exists() ) {
    3812         $response['authorName'] = html_entity_decode( $author->display_name ? $author->display_name : $author->nickname, ENT_QUOTES, get_bloginfo( 'charset' ) );
     3812        $author_name            = $author->display_name ? $author->display_name : $author->nickname;
     3813        $response['authorName'] = html_entity_decode( $author_name, ENT_QUOTES, get_bloginfo( 'charset' ) );
    38133814        $response['authorLink'] = get_edit_user_link( $author->ID );
    38143815    } else {
Note: See TracChangeset for help on using the changeset viewer.