WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/18/2014 08:41:28 PM (7 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.php

    r28393 r28478  
    1212 * @since 2.3.2
    1313 */
    14 if ( ! defined('WP_ADMIN') )
    15     define('WP_ADMIN', true);
     14if ( ! defined( 'WP_ADMIN' ) ) {
     15    define( 'WP_ADMIN', true );
     16}
    1617
    1718if ( ! defined('WP_NETWORK_ADMIN') )
Note: See TracChangeset for help on using the changeset viewer.