Make WordPress Core


Ignore:
Timestamp:
11/27/2012 04:17:53 PM (12 years ago)
Author:
ryan
Message:

Always send nocache_headers() for admin-ajax.php. This prevents iOS from caching ajax calls. http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results

Turn off multi selection uploads for mobile devices. Currently Plupload cannot upload multiple files in iOS Safari. Only the first file makes it to the queue.

Empty wp on unload to work around caching in iOS Safari.

Props azaozz, miqrogroove, nacin

fixes #22552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r22870 r22872  
    12551255        'urlstream_upload'    => true,
    12561256    );
     1257   
     1258    // Multi-file uploading doesn't currently work in iOS Safari,
     1259    // single-file allows the built-in camera to be used as source for images
     1260    if ( wp_is_mobile() )
     1261        $defaults['multi_selection'] = false;
    12571262
    12581263    $defaults = apply_filters( 'plupload_default_settings', $defaults );
Note: See TracChangeset for help on using the changeset viewer.