mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
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:
parent
2439833a7e
commit
e7540ea96a
@ -442,6 +442,7 @@ switch ( $_GET['action'] ) {
|
|||||||
if ( is_array( $_POST['theme'] ) ) {
|
if ( is_array( $_POST['theme'] ) ) {
|
||||||
$themes = get_themes();
|
$themes = get_themes();
|
||||||
reset( $themes );
|
reset( $themes );
|
||||||
|
$allowed_themes = array();
|
||||||
foreach ( (array) $themes as $key => $theme ) {
|
foreach ( (array) $themes as $key => $theme ) {
|
||||||
if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' )
|
if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' )
|
||||||
$allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true;
|
$allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true;
|
||||||
|
@ -70,7 +70,7 @@ $allowed_themes = get_site_allowed_themes();
|
|||||||
$disabled = true;
|
$disabled = true;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr valign="top" class="<?php echo $class, $class1; ?>">
|
<tr valign="top" class="<?php echo $class . ' ' . $class1; ?>">
|
||||||
<td>
|
<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>
|
<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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user