From dd73ad42990903be923c25a50cf357f9390fb3bb Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 04:45:16 +0000 Subject: [PATCH] In `edit_form_image_editor()`, `$filename` and `$title` are set and then unused. They shall be removed. See #27882. Built from https://develop.svn.wordpress.org/trunk@28271 git-svn-id: http://core.svn.wordpress.org/trunk@28099 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 06cd1c1283..4018cfdf59 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2607,8 +2607,6 @@ function edit_form_image_editor( $post ) { if ( $attachment_id = intval( $post->ID ) ) $thumb_url = wp_get_attachment_image_src( $attachment_id, array( 900, 450 ), true ); - $filename = esc_html( basename( $post->guid ) ); - $title = esc_attr( $post->post_title ); $alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true ); $att_url = wp_get_attachment_url( $post->ID ); ?>