[wp-trac] [WordPress Trac] #24541: wp_is_mobile() includes tablets
WordPress Trac
noreply at wordpress.org
Mon Nov 25 02:35:21 UTC 2013
#24541: wp_is_mobile() includes tablets
----------------------------+------------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.4
Severity: normal | Resolution:
Keywords: 2nd-opinion |
----------------------------+------------------------------
Comment (by celloexpressions):
Replying to [comment:1 johnbillion]:
> In core, `wp_is_mobile()` is used as a synonym for "is a touch device".
It's used to un-hide various links that are only shown on mouseover for
non-touch devices, by adding a 'mobile' class to the body.
>
> The difference between a mobile device and a non-mobile device is much
less clear than it was in the past. Maybe `wp_is_mobile()` needs to be
deprecated and replaced with `is_touch_device()`.
+1. Most Windows devices are now touch-enabled by default, so an
increasingly large percentage of laptop and desktop users need touch-
friendly components now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24541#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list