From 3b4c87e5d1593ed516cb82fc0c770b8c7ede5608 Mon Sep 17 00:00:00 2001 From: Curtis Loisel Date: Mon, 15 May 2017 11:52:33 -0500 Subject: [PATCH] Decoding entities on author name --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 6843c61b2..e95c01c9f 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -3098,7 +3098,7 @@ function wp_prepare_attachment_for_js( $attachment ) { ); $author = new WP_User( $attachment->post_author ); - $response['authorName'] = $author->display_name; + $response['authorName'] = html_entity_decode( $author->display_name, ENT_QUOTES, get_bloginfo( 'charset' ) ); if ( $attachment->post_parent ) { $post_parent = get_post( $attachment->post_parent );