TinyMCE: Don't attempt to initialize the same instance twice. Follow up to [51082].
See #52133, #52050. Built from https://develop.svn.wordpress.org/trunk@51085 git-svn-id: http://core.svn.wordpress.org/trunk@50694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82f31a97cb
commit
34cfd7e4ad
|
@ -1679,7 +1679,7 @@ final class _WP_Editors {
|
||||||
if (
|
if (
|
||||||
! init.wp_skip_init &&
|
! init.wp_skip_init &&
|
||||||
( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) &&
|
( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) &&
|
||||||
( readyState === 'complete' || ( ! inPostbox && readyState === 'interactive' ) )
|
( ( inPostbox && readyState === 'complete' ) || ( ! inPostbox && readyState === 'interactive' ) )
|
||||||
) {
|
) {
|
||||||
tinymce.init( init );
|
tinymce.init( init );
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-alpha-51084';
|
$wp_version = '5.8-alpha-51085';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue