mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
955ca76116
commit
6e3b368bc9
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user