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-ajax.php

    r28358 r28478  
    1515 */
    1616define( 'DOING_AJAX', true );
    17 define( 'WP_ADMIN', true );
     17if ( ! defined( 'WP_ADMIN' ) ) {
     18    define( 'WP_ADMIN', true );
     19}
    1820
    1921/** Load WordPress Bootstrap */
Note: See TracChangeset for help on using the changeset viewer.