WordPress.org

Make WordPress Core

Changeset 20030


Ignore:
Timestamp:
02/28/2012 09:41:19 PM (7 years ago)
Author:
koopersmith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/customize-controls.php

    r19995 r20030  
    2828do_action( 'customize_controls_enqueue_scripts' );
    2929
    30 $theme = get_theme( get_current_theme() );
    31 
    32 if ( $theme['Screenshot'] )
    33     $screenshot = $theme['Theme Root URI'] . '/' . $theme['Stylesheet'] . '/' . $theme['Screenshot'];
    34 else
    35     $screenshot = '';
     30$theme = wp_get_theme();
     31$screenshot = $theme->get_screenshot( 'absolute' );
    3632
    3733// Let's roll.
Note: See TracChangeset for help on using the changeset viewer.