From abd1d5e599c0da6a82b940e5751a4cda123a8fba Mon Sep 17 00:00:00 2001 From: koopersmith Date: Tue, 28 Feb 2012 21:41:19 +0000 Subject: [PATCH] Update customize-controls.php to use new WP_Theme API. see #19910, [20029]. git-svn-id: http://svn.automattic.com/wordpress/trunk@20030 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/customize-controls.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wp-includes/customize-controls.php b/wp-includes/customize-controls.php index 599a53d141..04d765c49f 100644 --- a/wp-includes/customize-controls.php +++ b/wp-includes/customize-controls.php @@ -27,12 +27,8 @@ wp_enqueue_style( 'customize-controls' ); do_action( 'customize_controls_enqueue_scripts' ); -$theme = get_theme( get_current_theme() ); - -if ( $theme['Screenshot'] ) - $screenshot = $theme['Theme Root URI'] . '/' . $theme['Stylesheet'] . '/' . $theme['Screenshot']; -else - $screenshot = ''; +$theme = wp_get_theme(); +$screenshot = $theme->get_screenshot( 'absolute' ); // Let's roll. @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));