Make WordPress Core

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's profile ppaquet Owned by: westi's profile 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)

#1 @westi
15 years ago

  • 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

#2 follow-up: @dd32
15 years ago

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

#3 in reply to: ↑ 2 @nacin
15 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.