Skip to content

Commit

Permalink
changed get_themes to wp_get_themes - depreciated 3.4
Browse files Browse the repository at this point in the history
changed get_current_theme to wp_get_theme - depreciated 3.4
  • Loading branch information
roblandry committed Jun 16, 2012
1 parent f05cdee commit 11f0902
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function themedrive_determine_theme()
}

// perhaps they are using the theme directory instead of title
$themes = get_themes();
$themes = wp_get_themes();

foreach ($themes as $theme_data) {
// use Stylesheet as it's unique to the theme - Template could point to another theme's templates
Expand Down Expand Up @@ -259,9 +259,9 @@ function themedrive_get_stylesheet($stylesheet)

function themedrive_switcher()
{
$themes = get_themes();
$themes = wp_get_themes();

$default_theme = get_current_theme();
$default_theme = wp_get_theme();

if (count($themes) > 1) {
$theme_names = array_keys($themes);
Expand Down

0 comments on commit 11f0902

Please sign in to comment.