[wp-trac] [WordPress Trac] #58987: Unify usage of die(), die( '-1' ), exit();
WordPress Trac
noreply at wordpress.org
Sun Aug 6 12:46:51 UTC 2023
#58987: Unify usage of die(), die( '-1' ), exit();
----------------------------+-------------------------------
Reporter: Presskopp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Resolution:
Keywords: needs-dev-note | Focuses: coding-standards
----------------------------+-------------------------------
Changes (by rajinsharwar):
* keywords: => needs-dev-note
* focuses: => coding-standards
* type: defect (bug) => enhancement
* severity: normal => minor
Comment:
Based on this theory, I guess we should consider using die() everywhere
instead of exit of die(-1).
[[Image(https://img001.prntscr.com/file/img001/bvohLKHlQJ2PhOwMlQDaeA.png)]]
Also, I don't think it's a bug, could go as a code enhancement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58987#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list