WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#6589 closed enhancement (wontfix)

Add Filter To wp_die message

Reported by: intoxination Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Template Keywords: filters wp_die has-patch dev-feedback
Focuses: 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 (1)

wpDieFilter.patch (500 bytes) - added by intoxination 9 years ago.

Download all attachments as: .zip

Change History (4)

#1 @intoxination
9 years ago

  • Keywords has-patch dev-feedback added

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

#2 @Denis-de-Bernardy
8 years ago

  • Component changed from General to Template

#3 @Denis-de-Bernardy
8 years ago

  • Milestone 2.9 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

there are the needed hooks to add actions in the ajax API.

Note: See TracTickets for help on using tickets.