From 09046cb2a3976a47e28d2fd79965711eca9f5d86 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 22 May 2014 19:08:14 +0000 Subject: [PATCH] In `get_attachment_icon_src()`, `$class` is set in 2 conditions but never used. See #27882. Built from https://develop.svn.wordpress.org/trunk@28548 git-svn-id: http://core.svn.wordpress.org/trunk@28374 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 43cf743b77..2687137842 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -1916,13 +1916,11 @@ function get_attachment_icon_src( $id = 0, $fullsize = false ) { // We have a thumbnail desired, specified and existing $src_file = basename($src); - $class = 'attachmentthumb'; } elseif ( wp_attachment_is_image( $post->ID ) ) { // We have an image without a thumbnail $src = wp_get_attachment_url( $post->ID ); $src_file = & $file; - $class = 'attachmentimage'; } elseif ( $src = wp_mime_type_icon( $post->ID ) ) { // No thumb, no image. We'll look for a mime-related icon instead.