### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
|
| 376 | 376 | case 'logout' : |
| 377 | 377 | check_admin_referer('log-out'); |
| 378 | 378 | wp_logout(); |
| 379 | | |
| 380 | | $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?loggedout=true'; |
| | 379 | $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : site_url('wp-login.php?loggedout=true', 'login'); |
| 381 | 380 | wp_safe_redirect( $redirect_to ); |
| 382 | 381 | exit(); |
| 383 | 382 | |
| … |
… |
|
| 389 | 388 | if ( $http_post ) { |
| 390 | 389 | $errors = retrieve_password(); |
| 391 | 390 | if ( !is_wp_error($errors) ) { |
| 392 | | $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?checkemail=confirm'; |
| | 391 | $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : site_url('wp-login.php?checkemail=confirm', 'login'); |
| 393 | 392 | wp_safe_redirect( $redirect_to ); |
| 394 | 393 | exit(); |
| 395 | 394 | } |