From 494f3644fd6810ff2e3e0b11292587de7b5980cc Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 7 Jun 2021 23:20:57 +0000 Subject: [PATCH] TinyMCE: Don't attempt to initialize the same instance twice. Follow up to [51082]. See #52133, #52050. git-svn-id: https://develop.svn.wordpress.org/trunk@51085 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 8812c770ab..914613508e 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -1679,7 +1679,7 @@ final class _WP_Editors { if ( ! init.wp_skip_init && ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && - ( readyState === 'complete' || ( ! inPostbox && readyState === 'interactive' ) ) + ( ( inPostbox && readyState === 'complete' ) || ( ! inPostbox && readyState === 'interactive' ) ) ) { tinymce.init( init );