Replace deprecated function. #41

Merged
merged 1 commit into from Sep 25, 2012
View
2 skeleton/functions.php
@@ -125,7 +125,7 @@ function optionsframework_custom_scripts() { ?>
add_action('get_header', 'st_registerstyles');
function st_registerstyles() {
- $theme = get_theme( get_current_theme());
+ $theme = wp_get_theme();
$version = $theme['Version'];
$stylesheets = wp_enqueue_style('skeleton', get_bloginfo('template_directory').'/skeleton.css', false, $version, 'screen, projection');
$stylesheets .= wp_enqueue_style('theme', get_bloginfo('stylesheet_directory').'/style.css', 'skeleton', $version, 'screen, projection');
View
2 skeleton_childtheme/functions.php
@@ -128,7 +128,7 @@ function optionsframework_custom_scripts() { ?>
add_action('get_header', 'st_registerstyles');
function st_registerstyles() {
- $theme = get_theme( get_current_theme());
+ $theme = wp_get_theme();
$version = $theme['Version'];
$stylesheets = wp_enqueue_style('skeleton', get_bloginfo('template_directory').'/skeleton.css', false, $version, 'screen, projection');
$stylesheets .= wp_enqueue_style('theme', get_bloginfo('stylesheet_directory').'/style.css', 'skeleton', $version, 'screen, projection');