mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed #1197;
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
<?php
|
||||
namespace um\core;
|
||||
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
|
||||
|
||||
/**
|
||||
* Class Fields
|
||||
* @package um\core
|
||||
@@ -3886,9 +3885,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
|
||||
$um_field_checkbox_item_title = $v;
|
||||
|
||||
$v = $this->filter_field_non_utf8_value( $v );
|
||||
$v = $this->filter_field_non_utf8_value( $v );
|
||||
$value_attr = ( ! empty( $v ) && is_string( $v ) ) ? wp_strip_all_tags( $v ) : $v;
|
||||
|
||||
$output .= '<input ' . $disabled . ' type="checkbox" name="' . esc_attr( $key ) . '[]" value="' . strip_tags( $v ) . '" ';
|
||||
$output .= '<input ' . $disabled . ' type="checkbox" name="' . esc_attr( $key ) . '[]" value="' . esc_attr( $value_attr ) . '" ';
|
||||
|
||||
if ( $this->is_selected( $key, $v, $data ) ) {
|
||||
$output .= 'checked';
|
||||
@@ -3897,10 +3897,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$output .= ' />';
|
||||
|
||||
if ( ! empty( $disabled ) && $this->is_selected( $key, $v, $data ) ) {
|
||||
$output .= $this->disabled_hidden_field( $key . '[]', strip_tags( $v ) );
|
||||
$output .= $this->disabled_hidden_field( $key . '[]', $value_attr );
|
||||
}
|
||||
|
||||
|
||||
$output .= '<span class="um-field-checkbox-state"><i class="' . esc_attr( $class ) . '"></i></span>';
|
||||
/**
|
||||
* UM hook
|
||||
|
||||
Reference in New Issue
Block a user