Skip to content

Commit e12e1f9

Browse files
committed
Editor: Remove option to disable the visual editor.
Remove the option "Disable the visual editor when writing" from the user profile if it is currently false. If enabled, the option will stay available until disabled. This was blocked due to issues with tab order and focusability in the classic editor environment until [59188]. Props mark-k, SergeyBiryukov, joedolson, pento, iseulde, chriscct7, afercia, prasadkarmalkar, rcreators, jamieblomerus. Fixes #34681. git-svn-id: https://develop.svn.wordpress.org/trunk@59695 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 20071e0 commit e12e1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/user-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
<h2><?php _e( 'Personal Options' ); ?></h2>
297297

298298
<table class="form-table" role="presentation">
299-
<?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>
299+
<?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) && 'false' === $profile_user->rich_editing ) : ?>
300300
<tr class="user-rich-editing-wrap">
301301
<th scope="row"><?php _e( 'Visual Editor' ); ?></th>
302302
<td>

0 commit comments

Comments
 (0)