[wp-trac] [WordPress Trac] #20923: Add support for mobile uploads

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 20 21:25:46 UTC 2012


#20923: Add support for mobile uploads
------------------------------+--------------------
 Reporter:  koke              |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.4.1
Component:  Media             |     Version:  3.4
 Severity:  normal            |  Resolution:
 Keywords:  mobile has-patch  |
------------------------------+--------------------
Changes (by tomauger):

 * cc: tomaugerdotcom@… (added)


Comment:

 @nacin, to that point, I'd be happy to contribute my work on user-agent
 detection. I'm attaching some early code that leverages Jon Stoppani's
 Browscap.php library. His licensing is current MIT Open Source. My wrapper
 (not yet quite pluginized, but easily done) adds a bunch of conditionals
 such as is_ie(), is_modern() or is_mobile().  The real work is done by
 Gary Keith and the Browser Capabilities Project team, which regularly
 update a large .ini file containing every user-agent string known to man,
 including obscure mobile microbrowsers etc. So it is completely
 independent of any server-side detection. The only caveat is that this is
 a reasonably large download, so it gets cached and then downloaded on a
 periodic basis. This mechanic can probably be improved.

 Anyway, here's the code, just for an audit to determine the viability of
 including such detection capabilities natively in core. IMO, with the
 browser landscape becoming ever more complex, something like this will
 become more and more important for responsive device-aware design and
 development. I'm happy to continue to build out this project beyond a
 plugin if the team thinks it's warranted.

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


More information about the wp-trac mailing list