• Resolved [email protected]

    (@gary_johnson_53hotmailcom)


    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)
  • Plugin Author Jeff Starr

    (@specialk)

    Will definitely check it out for the next plugin update, thank you Gary!

Viewing 1 replies (of 1 total)
  • The topic ‘Additions to widget-system-info.php’ is closed to new replies.