Make WordPress Core

Ticket #26607: 26607.patch

File 26607.patch, 789 bytes (added by rachelbaker, 10 years ago)

Hides admin color picker from user profiles that are not the current user.

  • wp-admin/user-edit.php

     
    247247                <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php if ( ! empty( $profileuser->rich_editing ) ) checked( 'false', $profileuser->rich_editing ); ?> /> <?php _e( 'Disable the visual editor when writing' ); ?></label></td>
    248248        </tr>
    249249<?php endif; ?>
    250 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
     250<?php if ( IS_PROFILE_PAGE && count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
    251251<tr>
    252252<th scope="row"><?php _e('Admin Color Scheme')?></th>
    253253<?php