Changeset 12802
- Timestamp:
- 01/22/2010 10:28:48 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-themes.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-themes.php
r12781 r12802 6 6 require_once('admin-header.php'); 7 7 8 if ( is_super_admin() == false ) {8 if ( !is_super_admin() ) 9 9 wp_die( __('You do not have permission to access this page.') ); 10 }11 10 12 if ( isset($_GET['updated'])) {11 if ( isset($_GET['updated']) ) { 13 12 ?> 14 13 <div id="message" class="updated fade"><p><?php _e('Site themes saved.') ?></p></div> … … 36 35 <?php 37 36 $total_theme_count = $activated_themes_count = 0; 38 foreach( (array) $themes as $key => $theme ) { 37 $class = ''; 38 foreach ( (array) $themes as $key => $theme ) { 39 39 $total_theme_count++; 40 40 $theme_key = wp_specialchars($theme['Stylesheet']); … … 42 42 $class1 = $enabled = $disabled = ''; 43 43 44 if ( isset( $allowed_themes[ $theme_key ] ) == true ) {44 if ( isset( $allowed_themes[ $theme_key ] ) == true ) { 45 45 $enabled = 'checked="checked" '; 46 46 $activated_themes_count++; … … 53 53 <td style="text-align:center;"> 54 54 <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 55 56 56 <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> 57 57 </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> 59 59 <td><?php echo $theme['Version'] ?></td> 60 60 <td><?php echo $theme['Description'] ?></td> 61 </tr> 61 </tr> 62 62 <?php } ?> 63 63 </tbody> … … 67 67 <input type='submit' value='<?php _e('Update Themes »') ?>' /></p> 68 68 </form> 69 69 70 70 <h3><?php _e('Total')?></h3> 71 71 <p>
Note: See TracChangeset
for help on using the changeset viewer.