WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#43501 closed defect (bug) (fixed)

Debug backtrace doesn't normalize paths before replacement

Reported by: Rarst Owned by: SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

wp_debug_backtrace_summary() tries to truncate admin and content paths from includes for brevity.

However it doesn't normalize paths before replacement, which is necessary for any kind of reliable operation cross–platform.

Attachments (1)

Normalized_paths_for_replacement_in_debug_backtrace_.patch (1.2 KB) - added by Rarst 3 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Rarst
3 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 5.0

#3 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 42800:

General: In wp_debug_backtrace_summary(), normalize paths before replacement for better cross–platform compatibility.

Props Rarst.
Fixes #43501.

#4 @johnbillion
2 years ago

  • Milestone changed from 5.0 to 5.1
  • Version trunk deleted
Note: See TracTickets for help on using tickets.