Skip to content

Commit d920a56

Browse files
committed
Fix warnings. see WordPress#11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12802 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 70d313d commit d920a56

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

wp-admin/ms-themes.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
$parent_file = 'ms-admin.php';
66
require_once('admin-header.php');
77

8-
if( is_super_admin() == false ) {
8+
if ( !is_super_admin() )
99
wp_die( __('You do not have permission to access this page.') );
10-
}
1110

12-
if (isset($_GET['updated'])) {
11+
if ( isset($_GET['updated']) ) {
1312
?>
1413
<div id="message" class="updated fade"><p><?php _e('Site themes saved.') ?></p></div>
1514
<?php
@@ -35,13 +34,14 @@
3534
<tbody id="plugins">
3635
<?php
3736
$total_theme_count = $activated_themes_count = 0;
38-
foreach( (array) $themes as $key => $theme ) {
37+
$class = '';
38+
foreach ( (array) $themes as $key => $theme ) {
3939
$total_theme_count++;
4040
$theme_key = wp_specialchars($theme['Stylesheet']);
4141
$class = ('alt' == $class) ? '' : 'alt';
4242
$class1 = $enabled = $disabled = '';
4343

44-
if( isset( $allowed_themes[ $theme_key ] ) == true ) {
44+
if ( isset( $allowed_themes[ $theme_key ] ) == true ) {
4545
$enabled = 'checked="checked" ';
4646
$activated_themes_count++;
4747
$class1 = ' active';
@@ -52,21 +52,21 @@
5252
<tr valign="top" class="<?php echo $class.$class1; ?>">
5353
<td style="text-align:center;">
5454
<label><input name="theme[<?php echo $theme_key ?>]" type="radio" id="enabled_<?php echo $theme_key ?>" value="enabled" <?php echo $enabled ?> /> <?php _e('Yes') ?></label>
55-
&nbsp;&nbsp;&nbsp;
55+
&nbsp;&nbsp;&nbsp;
5656
<label><input name="theme[<?php echo $theme_key ?>]" type="radio" id="disabled_<?php echo $theme_key ?>" value="disabled" <?php echo $disabled ?> /> <?php _e('No') ?></label>
5757
</td>
58-
<th scope="row" style="text-align:left;"><?php echo $key ?></th>
58+
<th scope="row" style="text-align:left;"><?php echo $key ?></th>
5959
<td><?php echo $theme['Version'] ?></td>
6060
<td><?php echo $theme['Description'] ?></td>
61-
</tr>
61+
</tr>
6262
<?php } ?>
6363
</tbody>
6464
</table>
6565

6666
<p class="submit">
6767
<input type='submit' value='<?php _e('Update Themes &raquo;') ?>' /></p>
6868
</form>
69-
69+
7070
<h3><?php _e('Total')?></h3>
7171
<p>
7272
<?php printf(__('Themes Installed: %d'), $total_theme_count); ?>

0 commit comments

Comments
 (0)