Check `$profileuser->rich_editing` for empty before using it in Edit User admin code.
Props sorich87, c3mdigital. Fixes #17328. Built from https://develop.svn.wordpress.org/trunk@25330 git-svn-id: http://core.svn.wordpress.org/trunk@25292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb70e277af
commit
988caeb9a7
|
@ -205,7 +205,7 @@ if ( ! IS_PROFILE_PAGE ) {
|
||||||
<?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?>
|
<?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e('Visual Editor')?></th>
|
<th scope="row"><?php _e('Visual Editor')?></th>
|
||||||
<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>
|
<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>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
|
<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
|
||||||
|
|
Loading…
Reference in New Issue