WordPress.org

Make WordPress Core

Changeset 12802


Ignore:
Timestamp:
01/22/10 22:28:48 (4 years ago)
Author:
ryan
Message:

Fix warnings. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-themes.php

    r12781 r12802  
    66require_once('admin-header.php'); 
    77 
    8 if( is_super_admin() == false ) { 
     8if ( !is_super_admin() ) 
    99    wp_die( __('You do not have permission to access this page.') ); 
    10 } 
    1110 
    12 if (isset($_GET['updated'])) { 
     11if ( isset($_GET['updated']) ) { 
    1312    ?> 
    1413    <div id="message" class="updated fade"><p><?php _e('Site themes saved.') ?></p></div> 
     
    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']); 
     
    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++; 
     
    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> 
     
    6767            <input type='submit' value='<?php _e('Update Themes &raquo;') ?>' /></p> 
    6868    </form> 
    69      
     69 
    7070    <h3><?php _e('Total')?></h3> 
    7171    <p> 
Note: See TracChangeset for help on using the changeset viewer.