WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9106 closed feature request (duplicate)

Suggestions for error-filter-hooks

Reported by: Matthias Reuter Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Plugins Keywords: needs-patch
Focuses: Cc:

Description

Dear developer of wordpress,

I am currently developing a new plugin for wordpress and I have some suggestions for new filter-hooks in wordpress:

  1. function edit_user: It would be nice if you could add a filter which allows to add some errors through a plugin to this function. Users would be informed, that there are some errors from the plugin. I think the redirect should be prevented when a plugin delivers some errors through this hook.
  1. existing hook "login_errors": It would be better when hook login_errors performs similar to hook registration_errors. The difference is, that login_errors allows to add a string to the error message, only. If there is no error message from wordpress, this function does have no effect.

In hook registration_errors, you are able to queue errors through $errors-object. This make it possible to prevent registering when some errors are delivered from a plugin. Could you implement a similar way of error-handling like this to hook login_errors?

Big thx for your support :)

Matthias

Change History (2)

comment:1 @Denis-de-Bernardy6 years ago

  • Keywords needs-patch added
  • Milestone set to Future Release
  • Priority changed from high to normal

comment:2 @Denis-de-Bernardy6 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

first item got fixed, second item is covered in a separate ticket where it is suggested to allow to override the login screen entirely.

Note: See TracTickets for help on using tickets.