Permalink
Browse files

replace deprecated function with current equivilent

get_theme() and get_current_theme() are deprecated and trigger errors.
Replaced with wp_get_theme().
  • Loading branch information...
1 parent 9d6405e commit b840388314d1b4921f4c8dfe3779f5bccb1c4590 @emirpprime emirpprime committed Sep 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 skeleton/functions.php
  2. +1 −1 skeleton_childtheme/functions.php
View
@@ -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');
@@ -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');

0 comments on commit b840388

Please sign in to comment.