Skip to:
Content

bbPress.org

Opened 8 weeks ago

Last modified 8 weeks ago

#3363 new enhancement

Use wp_die() instead of die() function

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

Description

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

Attachments (1)

3363.diff (2.1 KB) - added by immeet94 8 weeks ago.

Download all attachments as: .zip

Change History (3)

@immeet94
8 weeks ago

#1 @johnjamesjacoby
8 weeks 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
8 weeks 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.

Thanks.

Note: See TracTickets for help on using tickets.