[wp-trac] [WordPress Trac] #11172: Login form template function

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 18 20:40:54 UTC 2009


#11172: Login form template function
----------------------------+-----------------------------------------------
 Reporter:  ryan            |       Owner:  beaulebens
     Type:  task (blessed)  |      Status:  assigned  
 Priority:  normal          |   Milestone:  3.0       
Component:  Template        |     Version:  2.8.5     
 Severity:  normal          |    Keywords:            
----------------------------+-----------------------------------------------
Changes (by beaulebens):

  * owner:  => beaulebens
  * status:  new => assigned


Comment:

 If this function was called, and the user was already logged in, what
 would be displayed? I see a few options:

  * Show the form again anyway
  * Show a message like "Logged in as: [display_name]"
  * Return an empty string/show nothing

 I guess we should try to handle all of them, and make it take args to
 handle it all: echo, before, after, logged_in_msg (e.g. "Logged in as:
 %s", false to show form either way, null to show nothing if logged in?)

 I'm happy to tackle this one if we can get some consensus on this case.

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


More information about the wp-trac mailing list