WordPress.org

Make WordPress Core

Changeset 20420


Ignore:
Timestamp:
04/10/2012 02:34:47 AM (6 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.