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:
parent
c2fb0c425b
commit
66a7dd4697
|
@ -6,10 +6,11 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( wp_is_mobile() ) // cannot upload files from mobile devices
|
|
||||||
return;
|
|
||||||
|
|
||||||
$_GET['inline'] = 'true';
|
$_GET['inline'] = 'true';
|
||||||
/** Administration bootstrap */
|
/** Administration bootstrap */
|
||||||
require_once('./admin.php');
|
require_once('./admin.php');
|
||||||
|
|
||||||
|
if ( wp_is_mobile() ) // cannot upload files from mobile devices
|
||||||
|
return;
|
||||||
|
|
||||||
require_once('./media-upload.php');
|
require_once('./media-upload.php');
|
||||||
|
|
Loading…
Reference in New Issue