WordPress.org

Make WordPress Core

Ticket #20014: 20014.media-new.2.patch

File 20014.media-new.2.patch, 542 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-admin/media-new.php

     
    66 * @subpackage Administration 
    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');