Opened 4 years ago

Closed 4 years ago

#10672 closed defect (bug) (invalid)

register_post hook not compatible with PHP 4.x

Reported by: ppaquet Owned by: westi
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

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

comment:2 follow-up: ↓ 3   dd324 years ago

Possibly $user_login, $user_email should be added to the registration_errors filter as well?

comment:3 in reply to: ↑ 2   nacin4 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Replying to dd32:

Possibly $user_login, $user_email should be added to the registration_errors filter as well?

See #11237. Closing this as invalid.

Note: See TracTickets for help on using tickets.