Make WordPress Core

Ticket #24252: 24252.2.diff

File 24252.2.diff, 671 bytes (added by johnbillion, 10 years ago)
  • src/wp-includes/vars.php

     
    130130                $is_mobile = false;
    131131        } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Mobile') !== false // many mobile devices (all iPhone, iPad, etc.)
    132132                || strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false
     133                || strpos($_SERVER['HTTP_USER_AGENT'], 'Windows Phone') !== false
    133134                || strpos($_SERVER['HTTP_USER_AGENT'], 'Silk/') !== false
    134135                || strpos($_SERVER['HTTP_USER_AGENT'], 'Kindle') !== false
    135136                || strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry') !== false