[wp-trac] [WordPress Trac] #20410: Introduce a function to detect a device's ability to upload files

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 10 22:06:53 UTC 2012


#20410: Introduce a function to detect a device's ability to upload files
-------------------------+------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.4
Component:  Media        |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:  ux-feedback  |
-------------------------+------------------

Comment (by SergeyBiryukov):

 [attachment:20410.patch] is the first attempt:

 1. Improves iPhone/iPad detection so that it doesn't catch other mobile
 Safari devices.
 2. Introduces `_device_can_upload()` and leverages it where appropriate.
 3. Hooks in via `map_meta_cap()` for `upload_files`.

 However I've noticed that point 3 blocks access to Media Library, making
 it impossible to browse the files uploaded earlier.

 [attachment:20410.2.patch] contains points 1 and 2.

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


More information about the wp-trac mailing list