Update customize-controls.php to use new WP_Theme API. see #19910, [20029].

git-svn-id: https://develop.svn.wordpress.org/trunk@20030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-02-28 21:41:19 +00:00
parent 53a209a4ee
commit 1fd6d4bfd3
1 changed files with 2 additions and 6 deletions

View File

@ -27,12 +27,8 @@ wp_enqueue_style( 'customize-controls' );
do_action( 'customize_controls_enqueue_scripts' ); do_action( 'customize_controls_enqueue_scripts' );
$theme = get_theme( get_current_theme() ); $theme = wp_get_theme();
$screenshot = $theme->get_screenshot( 'absolute' );
if ( $theme['Screenshot'] )
$screenshot = $theme['Theme Root URI'] . '/' . $theme['Stylesheet'] . '/' . $theme['Screenshot'];
else
$screenshot = '';
// Let's roll. // Let's roll.
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));