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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 30 19:15:09 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 nacin):

 Replying to [comment:12 filosofo]:
 > Replying to [comment:11 nacin]:
 > > I would like to see a wp_login_form() function that echoes
 wp_get_login_form(), if we are to have both.
 >
 > You have WP precedent behind your suggestion, but it's a silly precedent
 I wish we'd not perpetuate.
 >
 > Why bloat the code with extra function definitions when any of the
 following could work just as well?

 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.

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


More information about the wp-trac mailing list