updated plugin Jetpack Protect version 1.4.2

This commit is contained in:
2023-10-22 22:21:06 +00:00
committed by Gitium
parent f512d25847
commit f07dfae114
242 changed files with 6494 additions and 1502 deletions

View File

@ -223,13 +223,17 @@ class User_Agent_Info {
* Note that this function returns the platform name, not the UA name/type. You should use a different function
* if you need to test the UA capabilites.
*
* @return string Name of the platform, false otherwise.
* @return string|bool Name of the platform, false otherwise.
*/
public function get_platform() {
if ( isset( $this->platform ) ) {
return $this->platform;
}
if ( empty( $this->useragent ) ) {
return false;
}
if ( strpos( $this->useragent, 'windows phone' ) !== false ) {
$this->platform = self::PLATFORM_WINDOWS;
} elseif ( strpos( $this->useragent, 'windows ce' ) !== false ) {