Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b840388314d1b4921f4c8dfe3779f5bccb1c4590 1 parent 9d6405e
@emirpprime authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  skeleton/functions.php
  2. +1 −1  skeleton_childtheme/functions.php
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');
Please sign in to comment.
Something went wrong with that request. Please try again.