WordPress.org

Make WordPress Core

Changeset 8461


Ignore:
Timestamp:
07/26/2008 07:54:02 AM (10 years ago)
Author:
westi
Message:

Only show the admin colour scheme picker if there is more than one theme to pick from. Fixes #7399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r8174 r8461  
    174174    </tr>
    175175<?php endif; ?>
     176<?php if (count($_wp_admin_css_colors) > 1 ) : ?>
    176177<tr>
    177178<th scope="row"><?php _e('Admin Color Scheme')?></th>
     
    185186    <table class="color-palette">
    186187    <tr>
    187     <?php
    188     foreach ( $color_info->colors as $html_color ): ?>
     188    <?php foreach ( $color_info->colors as $html_color ): ?>
    189189    <td style="background-color: <?php echo $html_color ?>" title="<?php echo $color ?>">&nbsp;</td>
    190190    <?php endforeach; ?>
     
    194194    <label for="admin_color_<?php echo $color; ?>"><?php echo $color_info->name ?></label>
    195195</div>
    196 <?php endforeach; ?>
     196    <?php endforeach; ?>
    197197</fieldset></td>
    198198</tr>
    199199</table>
    200 
    201 <?php
     200<?php endif;
     201   
    202202    if ( $is_profile_page ) {
    203203        do_action('profile_personal_options');
Note: See TracChangeset for help on using the changeset viewer.