Make WordPress Core


Ignore:
Timestamp:
06/07/2021 11:20:57 PM (4 years ago)
Author:
azaozz
Message:

TinyMCE: Don't attempt to initialize the same instance twice. Follow up to [51082].

See #52133, #52050.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r51082 r51085  
    16801680                        ! init.wp_skip_init &&
    16811681                        ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) &&
    1682                         ( readyState === 'complete' || ( ! inPostbox && readyState === 'interactive' ) )
     1682                        ( ( inPostbox && readyState === 'complete' ) || ( ! inPostbox && readyState === 'interactive' ) )
    16831683                    ) {
    16841684                        tinymce.init( init );
Note: See TracChangeset for help on using the changeset viewer.