mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +09:00
- fixed content block WP_Editor displaying #1195;
This commit is contained in:
@@ -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 '<div class="um-hidden-editor-edit" style="display:none;">';
|
||||
|
||||
@@ -66,6 +66,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
*/
|
||||
public $fields = array();
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $disable_tooltips = false;
|
||||
|
||||
/**
|
||||
* Fields constructor.
|
||||
*/
|
||||
@@ -712,17 +717,15 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$output .= '<label' . $for_attr . '>' . __( $label, 'ultimate-member' ) . '</label>';
|
||||
|
||||
if ( ! empty( $data['help'] ) && $this->viewing == false && ! strstr( $key, 'confirm_user_pass' ) ) {
|
||||
|
||||
if ( ! UM()->mobile()->isMobile() ) {
|
||||
if ( ! isset( $this->disable_tooltips ) ) {
|
||||
if ( false === $this->disable_tooltips ) {
|
||||
$output .= '<span class="um-tip um-tip-' . ( is_rtl() ? 'e' : 'w' ) . '" title="' . esc_attr__( $data['help'], 'ultimate-member' ) . '"><i class="um-icon-help-circled"></i></span>';
|
||||
}
|
||||
}
|
||||
|
||||
if ( UM()->mobile()->isMobile() || isset( $this->disable_tooltips ) ) {
|
||||
if ( UM()->mobile()->isMobile() || false !== $this->disable_tooltips ) {
|
||||
$output .= '<span class="um-tip-text">' . __( $data['help'], 'ultimate-member' ) . '</span>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$output .= '<div class="um-clear"></div></div>';
|
||||
|
||||
Reference in New Issue
Block a user