Automattic\Jetpack\Device_Detection

User_Agent_Info::isTierRichCss()publicWPSCache 1.0

This method detects for UA which are likely to be capable but may not necessarily support JavaScript. Excludes all iPhone Tier UA.

Method of the class: User_Agent_Info{}

No Hooks.

Return

null. Nothing (null).

Usage

$User_Agent_Info = new User_Agent_Info();
$User_Agent_Info->isTierRichCss();

User_Agent_Info::isTierRichCss() code WPSCache 1.11.0

public function isTierRichCss() {
	if ( isset( $this->isTierRichCss ) ) {
		return $this->isTierRichCss;
	}
	if ( $this->isTierIphone() ) {
		return false;
	}

	// The following devices are explicitly ok.
	if ( $this->is_S60_OSSBrowser() ) {
		$this->matched_agent       = 'series60';
		$this->isTierIphone        = false;
		$this->isTierRichCss       = true;
		$this->isTierGenericMobile = false;
	} elseif ( $this->is_opera_mini() ) {
		$this->matched_agent       = 'opera-mini';
		$this->isTierIphone        = false;
		$this->isTierRichCss       = true;
		$this->isTierGenericMobile = false;
	} elseif ( $this->is_blackbeberry() ) {
		$detectedDevice = $this->detect_blackberry_browser_version();
		if (
			'blackberry-5' === $detectedDevice
			|| 'blackberry-4.7' === $detectedDevice
			|| 'blackberry-4.6' === $detectedDevice
		) {
			$this->matched_agent       = $detectedDevice;
			$this->isTierIphone        = false;
			$this->isTierRichCss       = true;
			$this->isTierGenericMobile = false;
		}
	} else {
		$this->isTierRichCss = false;
	}

	return $this->isTierRichCss;
}