| Server IP : 149.50.156.242 / Your IP : 216.73.216.238 Web Server : Apache System : Linux vps-6212575-x.dattaweb.com 4.18.0-553.148.1.el8_10.x86_64 #1 SMP Tue Jul 28 01:08:52 EDT 2026 x86_64 User : c1751829 ( 1001) PHP Version : 8.4.23 Disable Function : system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/c1751829/public_html/wp-content/plugins/jetpack/ |
Upload File : |
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
* This file holds a function that needs to be loaded before WordPress itself
* on WordPress.com.
*
* @package automattic/jetpack
*/
use Automattic\Jetpack\Device_Detection;
/**
* Determine if the current User Agent matches the passed $kind
*
* @param string $kind Category of mobile device to check for.
* Either: any, dumb, smart.
* @param bool $return_matched_agent Boolean indicating if the UA should be returned.
*
* @return bool|string Boolean indicating if current UA matches $kind. If
* $return_matched_agent is true, returns the UA string
*/
function jetpack_is_mobile( $kind = 'any', $return_matched_agent = false ) {
if ( function_exists( 'apply_filters' ) ) {
/**
* Filter the value of jetpack_is_mobile before it is calculated.
*
* Passing a truthy value to the filter will short-circuit determining the
* mobile type, returning the passed value instead.
*
* @since 4.2.0
*
* @param bool|string $matches Boolean if current UA matches $kind or not. If
* $return_matched_agent is true, should return the UA string
* @param string $kind Category of mobile device being checked
* @param bool $return_matched_agent Boolean indicating if the UA should be returned
*/
$pre = apply_filters( 'pre_jetpack_is_mobile', null, $kind, $return_matched_agent );
if ( $pre ) {
return $pre;
}
}
$return = false;
$device_info = Device_Detection::get_info();
if ( 'any' === $kind ) {
$return = $device_info['is_phone'];
} elseif ( 'smart' === $kind ) {
$return = $device_info['is_smartphone'];
} elseif ( 'dumb' === $kind ) {
$return = $device_info['is_phone'] && ! $device_info['is_smartphone'];
}
if ( $return_matched_agent && true === $return ) {
$return = $device_info['is_phone_matched_ua'];
}
if ( function_exists( 'apply_filters' ) ) {
/**
* Filter the value of jetpack_is_mobile
*
* @since 4.2.0
*
* @param bool|string $matches Boolean if current UA matches $kind or not. If
* $return_matched_agent is true, should return the UA string
* @param string $kind Category of mobile device being checked
* @param bool $return_matched_agent Boolean indicating if the UA should be returned
*/
$return = apply_filters( 'jetpack_is_mobile', $return, $kind, $return_matched_agent );
}
return $return;
}