mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Coding Standards: Fix WPCS issues in [49207].
See #46866. git-svn-id: https://develop.svn.wordpress.org/trunk@49209 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3809,7 +3809,8 @@ function wp_prepare_attachment_for_js( $attachment ) {
|
||||
|
||||
$author = new WP_User( $attachment->post_author );
|
||||
if ( $author->exists() ) {
|
||||
$response['authorName'] = html_entity_decode( $author->display_name ? $author->display_name : $author->nickname, ENT_QUOTES, get_bloginfo( 'charset' ) );
|
||||
$author_name = $author->display_name ? $author->display_name : $author->nickname;
|
||||
$response['authorName'] = html_entity_decode( $author_name, ENT_QUOTES, get_bloginfo( 'charset' ) );
|
||||
$response['authorLink'] = get_edit_user_link( $author->ID );
|
||||
} else {
|
||||
$response['authorName'] = __( '(no author)' );
|
||||
|
||||
Reference in New Issue
Block a user