Make WordPress Core

Changeset 45056


Ignore:
Timestamp:
03/28/2019 07:03:47 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Ensure the fatal error handler is registered after WP_CONTENT_DIR is defined, so the custom error handler drop-in could be properly loaded.

Props sebastian.pisula, diddledan.
Fixes #46069.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r45014 r45056  
    2929require_once( ABSPATH . WPINC . '/plugin.php' );
    3030
    31 // Make sure we register the shutdown handler for fatal errors as soon as possible.
    32 wp_register_fatal_error_handler();
    33 
    3431/*
    3532 * These can't be directly globalized in version.php. When updating,
     
    5148// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE.
    5249wp_initial_constants();
     50
     51// Make sure we register the shutdown handler for fatal errors as soon as possible.
     52wp_register_fatal_error_handler();
    5353
    5454// Check for the required PHP version and for the MySQL extension or a database drop-in.
Note: See TracChangeset for help on using the changeset viewer.