From 66a7dd4697dec115bea411301acbe899fb1e5623 Mon Sep 17 00:00:00 2001 From: azaozz 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: http://svn.automattic.com/wordpress/trunk@20420 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 539b4765a..37f1db8f2 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');