Ticket #6589 (new enhancement)

Opened 5 months ago

Last modified 5 months ago

Add Filter To wp_die message

Reported by: intoxination Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: General Version: 2.5
Severity: normal Keywords: filters wp_die has-patch dev-feedback
Cc:

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

wpDieFilter.patch (500 bytes) - added by intoxination on 04/04/08 17:45:02.

Change History

04/04/08 17:44:47 changed by intoxination

  • keywords changed from filters wp_die to filters wp_die has-patch dev-feedback.

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).

04/04/08 17:45:02 changed by intoxination

  • attachment wpDieFilter.patch added.