[wp-trac] [WordPress Trac] #46418: Use wp_die() instead of die() function in wordpress
WordPress Trac
noreply at wordpress.org
Thu Jun 4 17:05:48 UTC 2020
#46418: Use wp_die() instead of die() function in wordpress
-------------------------------------+-----------------------------
Reporter: immeet94 | Owner: SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.5
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+-----------------------------
Changes (by garrett-eclipse):
* keywords: has-patch commit => has-patch needs-refresh
Comment:
Taking a look my main hesitation is load order and when wp_die becomes
available. It seems to be loaded here;
https://github.com/WordPress/wordpress-
develop/blob/master/src/index.php#L25
So to my understanding anything loaded before this such as the
WPINC/load.php will give an error and shouldn’t use wp_die.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46418#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list