Make WordPress Core

Changeset 59695


Ignore:
Timestamp:
01/23/2025 10:47:13 PM (3 months ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r59496 r59695  
    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>
Note: See TracChangeset for help on using the changeset viewer.