From 03224e2b13f7569bf0bba38054674ad89c7b8df6 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Wed, 31 May 2023 10:55:21 +0300 Subject: [PATCH] - fixed content block WP_Editor displaying #1195; --- includes/admin/core/class-admin-metabox.php | 6 +++--- includes/core/class-fields.php | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/includes/admin/core/class-admin-metabox.php b/includes/admin/core/class-admin-metabox.php index 975febe9..e226068d 100644 --- a/includes/admin/core/class-admin-metabox.php +++ b/includes/admin/core/class-admin-metabox.php @@ -1223,7 +1223,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { /** * Load modal content */ - function load_modal_content() { + public function load_modal_content() { $screen = get_current_screen(); if ( isset( $screen->id ) && strstr( $screen->id, 'um_form' ) ) { @@ -1236,12 +1236,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { include_once um_path . 'includes/admin/templates/modal/forms/fonticons.php'; } - if ( $screen->id == 'users' ) { + if ( 'users' === $screen->id ) { include_once um_path . 'includes/admin/templates/modal/dynamic_registration_preview.php'; } // needed on forms only - if ( ! isset( $this->is_loaded ) && isset( $screen->id ) && strstr( $screen->id, 'um_form' ) ) { + if ( false === $this->is_loaded && isset( $screen->id ) && strstr( $screen->id, 'um_form' ) ) { $settings['textarea_rows'] = 8; echo '';