[wp-trac] [WordPress Trac] #33704: Deprecate wp_is_mobile()

WordPress Trac noreply at wordpress.org
Sun Aug 28 22:46:51 UTC 2016


#33704: Deprecate wp_is_mobile()
-------------------------+-----------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.7
Component:  General      |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui, javascript
-------------------------+-----------------------------

Comment (by curdin):

 Looking at the CSS a bit closer the use of .ios is usually to address
 browser quirks / performance. As @akibjorklund hinted at both .ios and
 .mobile appear to be replaceable by use of mediaqueries. Saying that if js
 will be used to inject .mobile we can split the replacement of .mobile
 into a separate ticket as there won't be any dependency.
 Seems like given the broad use of wp_is_mobile() internal and by plugins
 it would make sense to split the tickets and then look at deprecating once
 all tickets are resolved?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33704#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list