WordPress.org

Make WordPress Core

Ticket #20014: 20014.patch

File 20014.patch, 688 bytes (added by azaozz, 3 years ago)
  • 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'], 'Silk/') !== false 
     117                || strpos($_SERVER['HTTP_USER_AGENT'], 'Kindle') !== false 
    116118                || strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry') !== false 
    117119                || strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false ) { 
    118120                        $is_mobile = true;