From a0cd792aae617f7f3369d98b437aee3d91c4611e Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sat, 10 Oct 2009 07:41:42 +0000 Subject: [PATCH] Constrain admin thumbnail display to width of meta box while in sidebar. Add filters. git-svn-id: http://svn.automattic.com/wordpress/trunk@12018 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index f22504d9c3..f08cbfa9e6 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -116,11 +116,11 @@ function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = fal function _wp_post_thumbnail_html( $thumbnail_id = NULL ) { if ( $thumbnail_id && get_post( $thumbnail_id ) ) { - $thumbnail_html = wp_get_attachment_image($thumbnail_id, 'thumbnail'); + $thumbnail_html = wp_get_attachment_image($thumbnail_id, array( 266, 266 ) ); if ( !empty( $thumbnail_html ) ) - return '' . $thumbnail_html . ''; + return apply_filters( 'admin_post_thumbnail_html', '' . $thumbnail_html . '' ); } - return '' . esc_html__( 'Set thumbnail' ) . ''; + return apply_filters( 'admin_post_thumbnail_html', '' . esc_html__( 'Set thumbnail' ) . '' ); } function post_thumbnail_meta_box() {