Files
Testing/tbb/wp-content/plugins/w3-total-cache/Mobile_UserAgent.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

23 lines
429 B
PHP

<?php
namespace W3TC;
/**
* W3TC Mobile detection
*/
/**
* class Mobile
*/
class Mobile_UserAgent extends Mobile_Base {
/**
* PHP5-style constructor
*/
function __construct() {
parent::__construct( 'mobile.rgroups', 'agents' );
}
function group_verifier( $group_compare_value ) {
return isset( $_SERVER['HTTP_USER_AGENT'] ) && preg_match( '~' . $group_compare_value . '~i', $_SERVER['HTTP_USER_AGENT'] );
}
}