Make WordPress Core

Ticket #47050: 47050.2.diff

File 47050.2.diff, 978 bytes (added by garrett-eclipse, 5 years ago)

Refreshed patch to add unknown cause string

  • src/wp-includes/class-wp-recovery-mode-email-service.php

     
    143143                        'Howdy!
    144144
    145145Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
     146
    146147###CAUSE###
     148
    147149First, visit your website (###SITEURL###) and check for any visible issues. Next, visit the page where the error was caught (###PAGEURL###) and check for any visible issues.
    148150
    149151###SUPPORT###
     
    169171                        array(
    170172                                $url,
    171173                                human_time_diff( time() + $rate_limit ),
    172                                 $cause ? "\n{$cause}\n" : "\n",
     174                                $cause ? $cause : __( 'In this case, WordPress caught an unknown error.' ),
    173175                                $details,
    174176                                home_url( '/' ),
    175177                                home_url( $_SERVER['REQUEST_URI'] ),