[wp-trac] [WordPress Trac] #10141: URL Functions for: login, logout, lostpasword and the new register

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 23 19:44:48 UTC 2009


#10141: URL Functions for: login, logout, lostpasword and the new register
-------------------------+--------------------------------------------------
 Reporter:  ramiy        |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.9      
Component:  Themes       |     Version:  2.8      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
Changes (by ramiy):

  * milestone:  Future Release => 2.9


Comment:

 Why not?

 This way all the __url_functions__ for login/logout/password/register will
 receive the same parameter - "$redirect".

 Also, we remove the old "$before" and "$after" parameters, and move the
 "<li></li>" html tags out from those functions to theme developers control
 outside the function.

 For backward compatibility we use:

 {{{
 wp-includes/deprecated.php

 function wp_register( $before = '<li>', $after = '</li>' ) {
    _deprecated_function(__FUNCTION__, '2.8.1', 'wp_registration()');
    echo $before;
    wp_registration('');
    echo $after;
 }

 }}}

 The result is that all the __url_functions__ will return only the
 '''URL'''.

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


More information about the wp-trac mailing list