Skip to content

Commit 35418c6

Browse files
tlloancywestonruter
andcommitted
Update src/wp-admin/includes/class-wp-automatic-updater.php
Co-authored-by: Weston Ruter <westonruter@gmail.com>
1 parent 11daa9e commit 35418c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/class-wp-automatic-updater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@ protected function send_plugin_theme_email( $type, $successful_updates, $failed_
15421542

15431543
if ( WP_DEBUG && ( 'fail' === $type || 'mixed' === $type ) ) {
15441544
$fatal_error = get_transient( 'wp_updater_last_fatal_error' );
1545-
if ( $fatal_error ) {
1545+
if ( is_string( $fatal_error ) ) {
15461546
$email['body'] .= "\n\n=== " . __( 'Last fatal PHP error', 'default' ) . " ===\n";
15471547
$email['body'] .= '' . $fatal_error . "\n";
15481548
$email['body'] .= "========================================\n";

0 commit comments

Comments
 (0)