[wp-trac] [WordPress Trac] #46069: WP_CONTENT_DIR in wp_register_fatal_error_handler
WordPress Trac
noreply at wordpress.org
Tue Jan 22 18:46:18 UTC 2019
#46069: WP_CONTENT_DIR in wp_register_fatal_error_handler
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------------
I think this is a problem. My case:
I created file `fatal-error-handler.php` in `wp-content` directory. In the
file I put the code:
{{{#!php
<?php
class IC_Fatal_Error_Handler extends WP_Fatal_Error_Handler {
public function handle() {
wp_die( 'error' );
}
}
return new IC_Fatal_Error_Handler();
}}}
And nothing. The file isn't loaded. I think that
`wp_register_fatal_error_handler()` should be call after calling
`wp_initial_constants()`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46069>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list