Make WordPress Core


Ignore:
Timestamp:
04/05/2019 03:52:39 PM (8 years ago)
Author:
flixos90
Message:

Bootstrap/Load: Do not redefine constants because tests don't like it.

See #46045.

File:
1 edited

Legend:

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

    r45114 r45116  
    860860                        // Load the theme's functions.php to test whether it throws a fatal error.
    861861                        ob_start();
    862                         define( 'WP_SANDBOX_SCRAPING', true );
     862                        if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
     863                                define( 'WP_SANDBOX_SCRAPING', true );
     864                        }
    863865                        include $functions_path;
    864866                        ob_clean();
Note: See TracChangeset for help on using the changeset viewer.