Skip to:

Opened 4 years ago

Last modified 4 years ago

#3363 new enhancement

Use wp_die() instead of die() function

Reported by: immeet94's profile immeet94 Owned by:
Milestone: Under Consideration Priority: normal
Severity: normal Version: trunk
Component: Tools - Code Improvements Keywords: has-patch reporter-feedback needs-testing


For plugin and coding standard need to use WordPress wp_die() instead of die().

Attachments (1)

3363.diff (2.1 KB) - added by immeet94 4 years ago.

Download all attachments as: .zip

Change History (3)

4 years ago

#1 @johnjamesjacoby
4 years ago

  • Component changed from General to Tools - Code Improvements
  • Keywords reporter-feedback needs-testing added
  • Milestone changed from Awaiting Review to Under Consideration

Did you test these?

At a cursory, the calls to die() inside of the unit test suite are like that because at that point in the code WordPress itself could not be found, so wp_die() is not around to call.

#2 @immeet94
4 years ago

Hello @johnjamesjacoby

i found the wp_die function in the other file like "class-bbp-admin.php" use the wp_die so I think might be not generated error.


Note: See TracTickets for help on using tickets.