Move the wp_is_mobile() check after the admin bootstrap in media-new.php, props SergeyBiryukov, see #20014

git-svn-id: https://develop.svn.wordpress.org/trunk@20420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-04-10 02:34:47 +00:00
parent 955ca76116
commit 6e3b368bc9

View File

@ -6,10 +6,11 @@
* @subpackage Administration
*/
if ( wp_is_mobile() ) // cannot upload files from mobile devices
return;
$_GET['inline'] = 'true';
/** Administration bootstrap */
require_once('./admin.php');
if ( wp_is_mobile() ) // cannot upload files from mobile devices
return;
require_once('./media-upload.php');