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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 30 22:45:37 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:  has-patch 
----------------------------+-----------------------------------------------

Comment(by filosofo):

 Replying to [comment:13 nacin]:
 > Part of that was me asking why we even need {{{wp_get_login_form()}}} at
 all. It sounds like a function that would pretty much always be echoed
 when used. At most, I would think it should be a {{{wp_login_form()}}}
 function that allows you to pass {{{array('echo' => false)}}}, not a get_*
 function that supports echoing.

 That's a reasonable compromise, but I think {{{wp_get_login_form()}}}
 gives the advantage of having a name that makes explicit its default
 behavior. How about {{{wp_print_login_form()}}}?  There is naming
 precedent in a few functions such as {{{wp_print_head_scripts()}}}

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


More information about the wp-trac mailing list