Permalink
Browse files

changed get_themes to wp_get_themes - depreciated 3.4

changed get_current_theme to wp_get_theme - depreciated 3.4
  • Loading branch information...
1 parent f05cdee commit 11f090267f5d1fabdf528a6719cf8855c6c9c0fb @roblandry committed Jun 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 themedrive.php
View
@@ -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
@@ -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);

0 comments on commit 11f0902

Please sign in to comment.