WordPress.org

Make WordPress Core

Ticket #24252: 24252.diff

File 24252.diff, 689 bytes (added by Ipstenu, 2 years ago)

Add windows phone to ismobile check

  • wordpress/wp-includes/vars.php

     
    113113                $is_mobile = false; 
    114114        } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Mobile') !== false // many mobile devices (all iPhone, iPad, etc.) 
    115115                || strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false 
     116                || strpos($_SERVER['HTTP_USER_AGENT'], 'Windows Phone') !== false 
    116117                || strpos($_SERVER['HTTP_USER_AGENT'], 'Silk/') !== false 
    117118                || strpos($_SERVER['HTTP_USER_AGENT'], 'Kindle') !== false 
    118119                || strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry') !== false