* using wp_is_mobile instead of MobileDetect library

This commit is contained in:
Mykyta Synelnikov
2024-12-17 21:53:18 +02:00
parent a6904639f3
commit 1ba3809344
7 changed files with 20 additions and 1353 deletions
+2 -2
View File
@@ -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>';
}
}