Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#64577 new enhancement

Enable recovery mode for multisite

Reported by: shtrom's profile shtrom Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: administration, multisite Cc:

Description

In #48929, the mention of a recovery email was removed for multisite instances.

However, looking at the current state of the code, it seems like there is support for recovery on multisite instances https://github.com/WordPress/wordpress-develop/blob/dc62ecbc345ca1b8d1801eca794d71755b7568f1/src/wp-includes/class-wp-fatal-error-handler.php#L187-L200, but it's just never activated https://github.com/WordPress/wordpress-develop/blob/dc62ecbc345ca1b8d1801eca794d71755b7568f1/src/wp-settings.php#L546-L549

It seems like

if ( ! is_multisite() && wp_is_fatal_error_handler_enabled() ) {
        wp_recovery_mode()->initialize();

could be changed to

if ( wp_is_fatal_error_handler_enabled() ) {
        wp_recovery_mode()->initialize();

in wp-settings.php

Change History (1)

This ticket was mentioned in PR #10846 on WordPress/wordpress-develop by @niravsherasiya7707.


6 weeks ago
#1

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.