[wp-trac] [WordPress Trac] #15384: wp-login.php refactor

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 21 19:06:40 UTC 2010


#15384: wp-login.php refactor
----------------------------+-----------------------------
 Reporter:  nacin           |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  3.2-early       |
----------------------------+-----------------------------

Comment (by norbertm):

 Re: ticket description, it would be easy now to display the login form
 with a message after password reset simply by making the
 [https://core.trac.wordpress.org/attachment/ticket/15384/class-wp-
 login-20101221.php#L1045 class at the bottom] extend WP_Login_View_Login
 like this:

 {{{
 /**
  * Outputs the login form with the password successfully reset message.
  */
 class WP_Login_View_ResetPass_Completed extends WP_Login_View_Login {
         /**
          * Class constructor.
          */
         public function __construct() {
                 parent::__construct( '<p class="message reset-pass">' .
 __('Your password has been reset.') . '</p>' );
         }
 }
 }}}

 That's it.

 Alternatively, you could create a new view and return it from any
 controller at any point to implement custom functionality.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15384#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list