Opened 4 years ago
Closed 4 years ago
#10672 closed defect (bug) (invalid)
register_post hook not compatible with PHP 4.x
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | |
| Severity: | normal | Keywords: | register_post, hook, reporter-feedback |
| Cc: |
Description
In wp-login.php, the way that the register_post get back errors is not compatible with PHP 4.x ($error is a passed as a copy, not a reference). Because of that, plugins that use that hook like no-disposable-email won't work with PHP 4.x
Change History (3)
- Keywords reporter-feedback added
- Priority changed from high to normal
- Severity changed from blocker to normal
Possibly $user_login, $user_email should be added to the registration_errors filter as well?
Note: See
TracTickets for help on using
tickets.

The plugin should be providing the updated error information using the registration_errors errors filter.
The action does not provide the $errors object explicitly as a reference - if it was it would use do_action_ref_array
The registration_errors filter is there so that a plugin can filter the $errors and return alternative