From d92f5aa154791d47a261bcb01f3a4798a9bdff84 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 16:40:52 +0000 Subject: [PATCH] In `get_media_item()`, `$tags` and `$_tags` are set and never used. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28297 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/media.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 4018cfdf59..68ea144a01 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -1306,12 +1306,6 @@ function get_media_item( $attachment_id, $args = null ) { $filename = esc_html( wp_basename( $post->guid ) ); $title = esc_attr( $post->post_title ); - if ( $_tags = get_the_tags( $attachment_id ) ) { - foreach ( $_tags as $tag ) - $tags[] = $tag->name; - $tags = esc_attr( join( ', ', $tags ) ); - } - $post_mime_types = get_post_mime_types(); $keys = array_keys( wp_match_mime_types( array_keys( $post_mime_types ), $post->post_mime_type ) ); $type = array_shift( $keys );