[wp-trac] [WordPress Trac] #37835: Add new function to return the current browser

WordPress Trac noreply at wordpress.org
Fri Aug 26 11:43:42 UTC 2016


#37835: Add new function to return the current browser
-----------------------------+------------------------------
 Reporter:  xavortm          |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by pross):

 Im sure this has come up before.

 Using a PHP function to sniff out the users browser to change something
 visual on your theme is not guaranteed to work all the time as a very
 large percentage of users install a static cache as their first plugin
 which renders your function useless.

 If you want your theme to be responsive to different browsers then use
 media queries or jQuery.

 Just my 2c.

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


More information about the wp-trac mailing list