Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#45948 new defect (bug)

WSOD protection message formatted incorrectly on windows

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


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 5 years ago.

Download all attachments as: .zip

Change History (2)

5 years ago

#1 @pbiron
5 years 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.