WordPress.org

Make WordPress Core

Ticket #17328: 17328.2.patch

File 17328.2.patch, 1.0 KB (added by c3mdigital, 20 months ago)
  • wp-admin/user-edit.php

     
    205205<?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?> 
    206206        <tr> 
    207207                <th scope="row"><?php _e('Visual Editor')?></th> 
    208                 <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php checked('false', $profileuser->rich_editing); ?> /> <?php _e('Disable the visual editor when writing'); ?></label></td> 
     208                                <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> 
    209209        </tr> 
    210210<?php endif; ?> 
    211211<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>