Opened 15 years ago
Closed 15 years ago
#10672 closed defect (bug) (invalid)
register_post hook not compatible with PHP 4.x
Reported by: | ppaquet | Owned by: | westi |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | register_post, hook, reporter-feedback |
Focuses: | 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)
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