[wp-trac] [WordPress Trac] #12282: Redirect option after registration and password recovery

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 24 03:58:49 UTC 2010


#12282: Redirect option after registration and password recovery
-------------------------+--------------------------------------------------
 Reporter:  usermrpapa   |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Users        |     Version:  2.9.2    
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by nacin):

 What are you trying to do here:
 {{{
 if ( isset( $_REQUEST['redirect_to'] ) ) {
    $redirect_to = $_REQUEST['redirect_to'];
 } else {
    $redirect_to = '';
 }
 $redirect_to = apply_filters('registration_redirect', $redirect_to, isset(
 $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '');
 }}}

 Looks like that should all just be:
 {{{
 $redirect_to = apply_filters( 'registration_redirect', isset(
 $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );
 }}}

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


More information about the wp-trac mailing list