diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 00a3465a3e..ce9a944440 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1055,18 +1055,11 @@ function get_media_items( $post_id, $errors ) { function get_media_item( $attachment_id, $args = null ) { global $redir_tab; - echo "$toggle_on"; - if ( ( $attachment_id = intval( $attachment_id ) ) && $thumb_url = wp_get_attachment_image_src( $attachment_id, 'thumbnail', true ) ) $thumb_url = $thumb_url[0]; else $thumb_url = false; - $display_title = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case - $display_title = $show_title ? "
" . wp_html_excerpt( $display_title, 60 ) . "
" : ''; - - echo "

"; - $post = get_post( $attachment_id ); $current_post_id = !empty( $_GET['post_id'] ) ? (int) $_GET['post_id'] : 0;