mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Bootstrap/Load: Only send the recovery mode email if the error occurs on a protected endpoint.
This reduces the potential email noise to places where the fatal error could be interfering with the login and admin experience. Once the user is in recovery mode, any fatal errors (even if they aren't in a protected endpoint) are handled and the plugin or theme will be paused. Props TimothyBlynJacobs. See #46950. Built from https://develop.svn.wordpress.org/trunk@45238 git-svn-id: http://core.svn.wordpress.org/trunk@45047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2a5c2a2cce
commit
2d81c95f73
@ -173,6 +173,10 @@ class WP_Recovery_Mode {
|
||||
}
|
||||
|
||||
if ( ! $this->is_active() ) {
|
||||
if ( ! is_protected_endpoint() ) {
|
||||
return new WP_Error( 'non_protected_endpoint', __( 'Error occurred on a non-protected endpoint.' ) );
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'wp_generate_password' ) ) {
|
||||
require_once ABSPATH . WPINC . '/pluggable.php';
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-beta3-45237';
|
||||
$wp_version = '5.2-beta3-45238';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user