### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-admin/includes/theme.php
===================================================================
--- wp-admin/includes/theme.php	(revision 12559)
+++ wp-admin/includes/theme.php	(working copy)
@@ -11,25 +11,22 @@
  *
  * @since unknown
  *
- * @return unknown
+ * @return object theme info object
  */
-function current_theme_info() {
-	$themes = get_themes();
+function &current_theme_info() {
+	$themes        = get_themes();
 	$current_theme = get_current_theme();
-	$ct->name = $current_theme;
-	$ct->title = $themes[$current_theme]['Title'];
-	$ct->version = $themes[$current_theme]['Version'];
-	$ct->parent_theme = $themes[$current_theme]['Parent Theme'];
-	$ct->template_dir = $themes[$current_theme]['Template Dir'];
-	$ct->stylesheet_dir = $themes[$current_theme]['Stylesheet Dir'];
-	$ct->template = $themes[$current_theme]['Template'];
-	$ct->stylesheet = $themes[$current_theme]['Stylesheet'];
-	$ct->screenshot = $themes[$current_theme]['Screenshot'];
-	$ct->description = $themes[$current_theme]['Description'];
-	$ct->author = $themes[$current_theme]['Author'];
-	$ct->tags = $themes[$current_theme]['Tags'];
-	$ct->theme_root = $themes[$current_theme]['Theme Root'];
-	$ct->theme_root_uri = $themes[$current_theme]['Theme Root URI'];
+	$transpose     = array(
+		'Title', 'Version', 'Parent Theme', 'Template Dir',
+		'Stylesheet Dir', 'Template', 'Stylesheet', 'Screenshot',
+		'Description', 'Author', 'Tags', 'Theme Root', 'Theme Root URI',
+	);
+	$ct =& new StdClass;
+	$ct->name = $current_theme;	
+	foreach ($transpose as $from) {
+		$key      = str_replace( ' ', '_', strtolower($from) );
+		$ct->$key = $themes[$current_theme][$from]; 				
+	}	
 	return $ct;
 }
 
