updated plugin Jetpack Protect
version 1.4.2
This commit is contained in:
@ -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 ) {
|
||||
|
Reference in New Issue
Block a user