Opened 19 years ago
Closed 17 years ago
#6589 closed enhancement (wontfix)
Add Filter To wp_die message
| Reported by: | intoxination | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.5 |
| Severity: | normal | Keywords: | filters wp_die has-patch dev-feedback |
| Cc: | Focuses: |
Description
It would be nice to have a filter on $message for wp_die. One possibility is when totally ajaxifying things (ie:comments), the message filter could be called and return just the error, without all the markup, so the JS could easily parse it.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch added against Rev. 7599. Add's filter wp_die passing $message and $title. Also checks for function_exists("apply_filters") in case wp_die is called before plugin.php is loaded (ie: if a database error occurs).