Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Deprecated functions #47

Merged
merged 1 commit into from

2 participants

@kurtpolinar

Replaced deprecated function get_theme_data() with wp_get_theme() in 2 files

@simplethemes simplethemes merged commit 17b2c3b into simplethemes:master
@simplethemes simplethemes referenced this pull request from a commit
@simplethemes Revert "Merge pull request #47 from kurtpolinar/master"
This reverts commit 17b2c3b, reversing
changes made to 9d43bb0.
f3e6692
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 24, 2012
  1. @kurtpolinar
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 4 deletions.
  1. +3 −2 skeleton/admin/options-interface.php
  2. +2 −2 skeleton/options.php
View
5 skeleton/admin/options-interface.php
@@ -10,8 +10,9 @@ function optionsframework_fields() {
$optionsframework_settings = get_option('optionsframework');
// Get the theme name so we can display it up top
- $themename = get_theme_data(STYLESHEETPATH . '/style.css');
- $themename = $themename['Name'];
+ $themename = wp_get_theme();
+ $themename = $themename->Name;
+
// Gets the unique option id
if (isset($optionsframework_settings['id'])) {
View
4 skeleton/options.php
@@ -11,8 +11,8 @@
function optionsframework_option_name() {
// This gets the theme name from the stylesheet (lowercase and without spaces)
- $themename = get_theme_data(STYLESHEETPATH . '/style.css');
- $themename = $themename['Name'];
+ $themename = wp_get_theme();
+ $themename = $themename->Name;
$themename = preg_replace("/\W/", "", strtolower($themename) );
$optionsframework_settings = get_option('optionsframework');
Something went wrong with that request. Please try again.