Make WordPress Core

Opened 7 years ago

Closed 3 years ago

#36981 closed enhancement (worksforme)

Add optional stack trace dump for WordPress deprecation notices

Reported by: mark-k's profile mark-k Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


When you have many plugins and complex theme, it is harder to pinpoint the root code which uses a deprecated function/parameter. An optional stack trace can make it easier, probably under some new defined flag.

Attachments (1)

stacktrace.png (144.3 KB) - added by peterwilsoncc 3 years ago.

Download all attachments as: .zip

Change History (3)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.

3 years ago

#2 @peterwilsoncc
3 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

This was discussed in the APAC Core triage today.

Sorry about the length of time taken to respond, we've decided to close this as worksforme as stack traces are available due to the use of PHP's trigger_error() function.

I've attached a screen shot with a call to get_postdata() to demonstrate.

To make use of these, you'll need to enable debug mode in wp-config.php

Note: See TracTickets for help on using tickets.