WordPress.org

Make WordPress Core

Opened 10 days ago

Last modified 10 days ago

#45948 new defect (bug)

WSOD protection message formatted incorrectly on windows

Reported by: pbiron Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bootstrap/Load Keywords:
Focuses: Cc:

Description

When the WSOD protection in 5.1 beta1 pauses a plugin on a windows host, the message that displays in wp-admin/plugins.php the file path where the error occurred doesn't display properly (the path separator has been stripped). See the attached screenshot.

Attachments (1)

wsod_message.png (14.8 KB) - added by pbiron 10 days ago.

Download all attachments as: .zip

Change History (2)

@pbiron
10 days ago

#1 @pbiron
10 days ago

There are probably a few places this could be fixed, in the few minutes I've looked through this new code I think easiest would be in wp_record_extension_error().

That function already calls wp_normalize_path( $error['file'] ). I think it should actually set $error['file'] to the return value of that call to wp_normalize_path()...but I'll leave to those who know this new code better than I to decide (unless folks want me to do a patch for that fix).

Note: See TracTickets for help on using tickets.