Ticket #18743: general-template.php.patch
File general-template.php.patch, 910 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/general-template.php
357 357 * 358 358 * @return string User registration URL. 359 359 */ 360 function wp_registration_url() { 360 function wp_registration_url($redirect = '') { 361 $args = array( 'action' => 'register' ); 362 if ( !empty($redirect) ) { 363 $args['redirect_to'] = urlencode( $redirect ); 364 } 365 366 $registration_url = add_query_arg($args, site_url('wp-login.php', 'login')); 367 361 368 /** 362 369 * Filters the user registration URL. 363 370 * … … 365 372 * 366 373 * @param string $register The user registration URL. 367 374 */ 368 return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ));375 return apply_filters( 'register_url', $registration_url, $redirect ); 369 376 } 370 377 371 378 /**