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
This commit is contained in:
azaozz 2012-04-10 02:34:47 +00:00
parent c2fb0c425b
commit 66a7dd4697
1 changed files with 4 additions and 3 deletions

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');