WordPress.org

Make WordPress Core

Ticket #6198: color-option-label.diff

File color-option-label.diff, 2.3 KB (added by nbachiyski, 10 years ago)
  • wp-admin/wp-admin.css

     
    814814        border-style: solid;
    815815}
    816816
    817 .form-table label.color-option {
    818         display: block;
     817.form-table div.color-option {
    819818        clear: both;
    820819}
    821820
     
    13381337
    13391338#templateside ul li a {
    13401339        text-decoration: none;
    1341 }
    1342  No newline at end of file
     1340}
  • wp-admin/user-edit.php

     
    161161if ( empty($current_color) )
    162162        $current_color = 'classic';
    163163foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
    164 <label class="color-option"><input name="admin_color" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> />
     164<div class="color-option">
     165<input name="admin_color" type="radio" id="color-option-<?php echo $color?>" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> />
    165166        <table class="color-palette">
    166167        <tr>
    167168        <?php
    168         foreach ( $color_info->colors as $color ): ?>
    169         <td style="background-color: <?php echo $color ?>" title="<?php echo $color ?>"></td>
     169        foreach ( $color_info->colors as $html_color ): ?>
     170        <td style="background-color: <?php echo $html_color ?>" title="<?php echo $html_color ?>"></td>
    170171        <?php endforeach; ?>
    171172        </tr>
    172173        </table>
    173        
    174         <?php echo $color_info->name ?>
    175 </label>
     174        <label class="color-option" for="color-option-<?php echo $color; ?>">
     175                <?php echo $color_info->name ?>
     176        </label>
     177</div>
    176178<?php endforeach; ?>
    177179</td>
    178180</tr>
     
    303305                <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
    304306                <?php if ( $is_profile_page ): ?>
    305307                <p><strong><?php _e('Password Strength:'); ?></strong></p>
    306                 <div id="pass-strength-result"><?php _e('Too short'); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&( in your password.'); ?>
     308                <div id="pass-strength-result"><?php _e('Too short'); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&amp;( in your password.'); ?>
    307309                <?php endif; ?>
    308310        </td>
    309311</tr>