From c8278a7599e24fc5a61897419a925095904b3b4d Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Thu, 2 Nov 2017 13:59:57 +0200 Subject: [PATCH] - fixed modal window wp_editor; --- includes/admin/core/class-admin-metabox.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/admin/core/class-admin-metabox.php b/includes/admin/core/class-admin-metabox.php index ebf6a0fa..c385ea17 100644 --- a/includes/admin/core/class-admin-metabox.php +++ b/includes/admin/core/class-admin-metabox.php @@ -856,7 +856,7 @@ if ( ! class_exists( 'Admin_Metabox' ) ) { } // needed on forms only - if ( !isset( $this->is_loaded ) && isset( $screen->id ) && strstr( $screen->id, 'um_form' ) ) { + if ( ! isset( $this->is_loaded ) && isset( $screen->id ) && strstr( $screen->id, 'um_form' ) ) { $settings['textarea_rows'] = 8; @@ -868,6 +868,7 @@ if ( ! class_exists( 'Admin_Metabox' ) ) { wp_editor( '', 'um_editor_new', $settings ); echo ''; + $this->is_loaded = true; } }