WordPress.org

Make WordPress Core

Ticket #9393: 9393-admin-php.diff

File 9393-admin-php.diff, 372 bytes (added by sivel, 9 years ago)

Notice fix for media upload. check if WP_ADMIN is defined before trying to define it.

  • wp-admin/admin.php

     
    1111 *
    1212 * @since unknown
    1313 */
    14 define('WP_ADMIN', TRUE);
     14if ( !defined('WP_ADMIN') )
     15        define('WP_ADMIN', TRUE);
    1516
    1617if ( defined('ABSPATH') )
    1718        require_once(ABSPATH . 'wp-load.php');