Make WordPress Core


Ignore:
Timestamp:
05/18/2014 08:41:28 PM (10 years ago)
Author:
wonderboymusic
Message:

Because the WP_ADMIN constant name can be bound in multiple files, all instances should check ! defined first. wp-admin/admin.php already has this check.

See #27881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-post.php

    r28394 r28478  
    1010
    1111/** We are located in WordPress Administration Screens */
    12 define('WP_ADMIN', true);
     12if ( ! defined( 'WP_ADMIN' ) ) {
     13    define( 'WP_ADMIN', true );
     14}
    1315
    1416if ( defined('ABSPATH') )
Note: See TracChangeset for help on using the changeset viewer.