Warning and styling fixes. Props ocean90. fixes #13775

git-svn-id: http://svn.automattic.com/wordpress/trunk@15179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-09 18:13:29 +00:00
parent 2439833a7e
commit e7540ea96a
2 changed files with 2 additions and 1 deletions

View File

@ -442,6 +442,7 @@ switch ( $_GET['action'] ) {
if ( is_array( $_POST['theme'] ) ) {
$themes = get_themes();
reset( $themes );
$allowed_themes = array();
foreach ( (array) $themes as $key => $theme ) {
if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' )
$allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true;

View File

@ -70,7 +70,7 @@ $allowed_themes = get_site_allowed_themes();
$disabled = true;
}
?>
<tr valign="top" class="<?php echo $class, $class1; ?>">
<tr valign="top" class="<?php echo $class . ' ' . $class1; ?>">
<td>
<label><input name="theme[<?php echo $theme_key ?>]" type="radio" id="enabled_<?php echo $theme_key ?>" value="enabled" <?php checked( $enabled ) ?> /> <?php _e( 'Yes' ) ?></label>
&nbsp;&nbsp;&nbsp;