Additions to widget-system-info.php
-
Consider this for function dashboard_widgets_suite_get_platform() :
add auto windows 10 detection
$os_array = array(‘/windows nt 10.0/i’ => ‘Windows 10’,
‘/windows nt 6.2/i’ => ‘Windows 8’,
…
add auto 64 bit detection
$bit_array = array(
‘/wow64/i’ => ’64 bit’,
‘/win64/i’ => ’64 bit’
);foreach ($bit_array as $regex => $value) {
if (preg_match($regex, $user_agent)) {
$os_platform .= ‘ : ‘ . $value;
break;
}
}return $os_platform;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Additions to widget-system-info.php’ is closed to new replies.