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.

Метод класса: User_Agent_Info{}

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код User_Agent_Info::isTierRichCss() WPSCache 1.9.1

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;
}