[wp-trac] [WordPress Trac] #26215: wp_is_mobile: maybe differentiate between tablets and phones

WordPress Trac noreply at wordpress.org
Sun Nov 24 17:52:01 UTC 2013


#26215: wp_is_mobile: maybe differentiate between tablets and phones
-------------------------+------------------------------
 Reporter:  iandstewart  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Description changed by iandstewart:

Old description:

> Maybe we should differentiate between tablets and phones. For example in
> Twenty Fourteen we hide content with display none which falsely suggests
> the content is not loaded -- and it probably shouldn't be. We can't use
> wp_is_mobile in it's current state to hide it because it doesn't
> differentiate between tablets and phones. Twenty Fourteen, for example,
> _does_ show content on tablets even though it doesn't on phones.
>
> The attached patch is a proposal for allowing us to take care of that.

New description:

 Maybe we should differentiate between tablets and phones. For example in
 Twenty Fourteen we hide content on phone-sized screens with display none
 which falsely suggests the content is not loaded -- and it probably
 shouldn't be. We can't use wp_is_mobile in it's current state to hide it
 because it doesn't differentiate between tablets and phones. Twenty
 Fourteen, for example, _does_ show content on tablets even though it
 doesn't on phones.

 The attached patch is a proposal for allowing us to take care of that.

--

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26215#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list