<?php
/*
Plugin Name: Fixes the Appearance Menu problem in version 3.0.1
Description: Adds the role edit_theme_options to the administrator user role.
Author: Tim Moore
Version: 1.0
Author URI: http://dreaminginbetween.com/
*/

/* 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License (v2) as published 
    by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

function wcs_fix_appearance_menu() {
	get_role( 'administrator' );
	global $wp_roles;
	$wp_roles->role_objects['administrator']->add_cap( 'edit_theme_options' );
}

add_action( 'admin_init', 'wcs_fix_appearance_menu', 9999 );
?>