Make WordPress Core


Ignore:
Timestamp:
04/05/2019 03:19:50 PM (6 years ago)
Author:
flixos90
Message:

Bootstrap/Load: Ensure WP_Fatal_Error_Handler does not conflict with existing mechanisms treating fatal errors.

Prior to this change, resuming or activating a plugin or theme that is still broken would result in a redirect loop if in recovery mode. If outside recovery mode, it would cause the error template to be displayed.

Furthermore this applies to breaking a plugin or theme when editing from the backend.

Props aandrewdixon, azaozz, dhanukanuwan, henrywright, ocean90, ohiosierra, PandelisZ, xkon.
Fixes #46045, #46751.

File:
1 edited

Legend:

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

    r44975 r45114  
    860860            // Load the theme's functions.php to test whether it throws a fatal error.
    861861            ob_start();
     862            define( 'WP_SANDBOX_SCRAPING', true );
    862863            include $functions_path;
    863864            ob_clean();
Note: See TracChangeset for help on using the changeset viewer.