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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 30 16:54:24 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: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?

 {{{
 echo wp_get_login_form();
 print wp_get_login_form();
 wp_get_login_form(array('echo' => true));
 }}}

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


More information about the wp-trac mailing list