mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
* using wp_is_mobile instead of MobileDetect library
This commit is contained in:
@@ -751,13 +751,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$output .= '</label>';
|
||||
|
||||
if ( ! empty( $data['help'] ) && false === $this->viewing && false === strpos( $key, 'confirm_user_pass' ) ) {
|
||||
if ( ! UM()->mobile()->isMobile() ) {
|
||||
if ( ! wp_is_mobile() ) {
|
||||
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 ( false !== $this->disable_tooltips || UM()->mobile()->isMobile() ) {
|
||||
if ( false !== $this->disable_tooltips || wp_is_mobile() ) {
|
||||
$output .= '<span class="um-tip-text">' . __( $data['help'], 'ultimate-member' ) . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user