WordPress.org

Make WordPress Core

Changeset 20420


Ignore:
Timestamp:
04/10/12 02:34:47 (2 years ago)
Author:
azaozz
Message:

Move the wp_is_mobile() check after the admin bootstrap in media-new.php, props SergeyBiryukov, see #20014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media-new.php

    r20417 r20420  
    77 */ 
    88 
     9$_GET['inline'] = 'true'; 
     10/** Administration bootstrap */ 
     11require_once('./admin.php'); 
     12 
    913if ( wp_is_mobile() ) // cannot upload files from mobile devices 
    1014    return; 
    1115 
    12 $_GET['inline'] = 'true'; 
    13 /** Administration bootstrap */ 
    14 require_once('./admin.php'); 
    1516require_once('./media-upload.php'); 
Note: See TracChangeset for help on using the changeset viewer.