Permalink
Browse files

Bring back wp_theme_data() for PressTrends

  • Loading branch information...
1 parent 7541d00 commit dc9ced5b2c421a8dea6c06a3820004af7774d419 @milohuang committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions.php
View
@@ -255,7 +255,7 @@ function presstrends() {
$count_posts = wp_count_posts();
$count_pages = wp_count_posts('page');
$comments_count = wp_count_comments();
-$theme_data = wp_get_theme();
+$theme_data = get_theme_data(get_stylesheet_directory() . '/style.css');
$plugin_count = count(get_option('active_plugins'));
$all_plugins = get_plugins();
foreach($all_plugins as $plugin_file => $plugin_data) {
@@ -269,7 +269,7 @@ function presstrends() {
$data['approved'] = $comments_count->approved;
$data['spam'] = $comments_count->spam;
$data['theme_version'] = $theme_data['Version'];
-$data['theme_name'] = urlencode($theme_data['Name']);
+$data['theme_name'] = $theme_data['Name'];
$data['site_name'] = str_replace( ' ', '', get_bloginfo( 'name' ));
$data['plugins'] = $plugin_count;
$data['plugin'] = urlencode($plugin_name);

0 comments on commit dc9ced5

Please sign in to comment.