[wp-trac] [WordPress Trac] #41023: Allow people to change wp_is_mobile logic though a filter

WordPress Trac noreply at wordpress.org
Wed Jun 14 13:36:04 UTC 2017


#41023: Allow people to change wp_is_mobile logic though a filter
-----------------------------+------------------------------
 Reporter:  PressLabs        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------
Changes (by PressLabs):

 * keywords:  needs-patch =>


Comment:

 I understand the skepticism regarding the subject, one should strive for
 making websites responsive, but this might not be the only application for
 this.

 For example we have an external caching layer that automatically detects
 whether a request is coming from a desktop device or a mobile one. All is
 fine and good until you get to a point when Google recommends that device
 X should be considered a desktop device while other plugins that alter
 content might see it as a mobile one and lack a proper mechanism to alter
 their behavior.
 The issue arises when when a uncached resource is requested, the contents
 of that page will depend on whether the first visitor was by the plugins
 perspective a mobile device or not, and not necessarily what we think we
 should be serving. This gets murky fast as some people might want to serve
 ads or any other content based on the target device.

 Let me know if there is anything I could change to make this as standard
 as possible.

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


More information about the wp-trac mailing list