[wp-trac] [WordPress Trac] #17411: Duplicate 'login_form' action in wp-login.php

WordPress Trac wp-trac at lists.automattic.com
Fri May 13 08:33:22 UTC 2011


#17411: Duplicate 'login_form' action in wp-login.php
--------------------------+-----------------------------
 Reporter:  sorich87      |      Owner:  sorich87
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.2
 Severity:  major         |   Keywords:  has-patch
--------------------------+-----------------------------
 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'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17411>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list