WordPress.org

Make WordPress Core

Ticket #47681: 47681.2.diff

File 47681.2.diff, 909 bytes (added by garrett-eclipse, 6 months ago)

Re-use the 'Read about debugging in WordPress.' string and link from class-wp-site-health.php for this implementation

  • src/wp-includes/class-wp-fatal-error-handler.php

     
    174174                } else {
    175175                        $message = __( 'The site is experiencing technical difficulties.' );
    176176                }
     177                $message .= sprintf(
     178                        ' <a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     179                        /* translators: Documentation explaining debugging in WordPress. */
     180                        esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
     181                        __( 'Read about debugging in WordPress.' ),
     182                        /* translators: accessibility text */
     183                        __( '(opens in a new tab)' )
     184                );
    177185
    178186                $args = array(
    179187                        'response' => 500,