From 6e3b368bc94fcedbe8374304ae93fa39249d4fc4 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 10 Apr 2012 02:34:47 +0000 Subject: [PATCH] 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 --- wp-admin/media-new.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/media-new.php b/wp-admin/media-new.php index 539b4765ac..37f1db8f2b 100644 --- a/wp-admin/media-new.php +++ b/wp-admin/media-new.php @@ -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');