[wp-trac] [WordPress Trac] #37835: Add new function to return the current browser
WordPress Trac
noreply at wordpress.org
Fri Aug 26 06:38:48 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 | Keywords:
Focuses: administration, template |
--------------------------------------+-----------------------------
I couldn't find a previous ticket for this. I've often had to write some
quick patching in my themes to detect what browser is the user using. PHP
or JS/CSS it comes in handy knowing what the user uses. Any thoughts if
this is a good addition to the core or?
I was thinking of something along the lines of wp_get_browser(); (there's
get_browser() function, but its output is raw). If this new function can
return pretty output of the browser type, version, etc. It can be quite
handy :)
What I read on the php site - they say the get_browser() is too slow and
there are other simpler solutions. I would love to see some feedback on
this idea :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37835>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list