#17411 closed defect (bug) (fixed)
Duplicate 'login_form' action in wp-login.php
Reported by: | sorich87 | Owned by: | sorich87 |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | major | Version: | 3.2 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
There are two instances of do_action( 'login_form' ); in wp-login.php. This breaks existing plugins which add text or fields to the login form.
The following code can be used to reproduce the bug:
function my_login_form(){ echo '<p>I am adding something to the login form.</p>'; } add_action( 'login_form', 'my_login_form' );
The bug was introduced by [17826].
I would suggest renaming the hook added in [17826] to 'login_init' or 'login_header'.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Rename login_form action introduced in [17826] to login_header