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-admin/includes/media.php

    r22867 r22872  
    15091509);
    15101510
     1511// Multi-file uploading doesn't currently work in iOS Safari,
     1512// single-file allows the built-in camera to be used as source for images
     1513if ( wp_is_mobile() )
     1514    $plupload_init['multi_selection'] = false;
     1515
    15111516$plupload_init = apply_filters( 'plupload_init', $plupload_init );
    15121517
Note: See TracChangeset for help on using the changeset viewer.