Ticket #6692 (closed defect: duplicate)

Opened 8 months ago

Last modified 7 months ago

Handling of errors in wp-login.php

Reported by: dtc Assigned to: ryan
Priority: high Milestone:
Component: General Version: 2.5
Severity: normal Keywords: errors, wp-login
Cc:

Description

Hello,

There has been some changes in the way errors are handled in wp-login.php : in WP 2.3.x, there was a global array defined ($errors[]) which could be interacted with via plugins :

$errors['user_email'] = __('<strong>ERROR</strong>: The email address
is not correct.');

With WP2.5, plugins can't seem to add to $errors->add(). I think I've tried every possibility and I cannot make out why in a plugin something like :

$errors->add('invalid_email', __('<strong>ERROR</strong>: The email
address is not correct.'));

does not work. I should say that it is part of a function that is inserted through add_action('register_post').

Add that line make wp-login.php go blank.

Change History

04/14/08 19:49:55 changed by ryan

  • owner changed from anonymous to ryan.

04/16/08 21:02:21 changed by ryan

  • status changed from new to closed.
  • resolution set to duplicate.
  • milestone deleted.

Duplicate of #5763