|
@@ 647-651 (lines=5) @@
|
| 644 |
|
update_user_meta( $user->ID, 'wpcom_user_data', $user_data ); |
| 645 |
|
|
| 646 |
|
$remember = false; |
| 647 |
|
if ( ! empty( $_COOKIE['jetpack_sso_remember_me'] ) ) { |
| 648 |
|
$remember = true; |
| 649 |
|
// And then purge it |
| 650 |
|
setcookie( 'jetpack_sso_remember_me', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 651 |
|
} |
| 652 |
|
/** |
| 653 |
|
* Filter the remember me value. |
| 654 |
|
* |
|
@@ 671-676 (lines=6) @@
|
| 668 |
|
$redirect_to = user_can( $user, 'edit_posts' ) ? admin_url() : self::profile_page_url(); |
| 669 |
|
|
| 670 |
|
// If we have a saved redirect to request in a cookie |
| 671 |
|
if ( ! empty( $_COOKIE['jetpack_sso_redirect_to'] ) ) { |
| 672 |
|
// Set that as the requested redirect to |
| 673 |
|
$redirect_to = $_request_redirect_to = esc_url_raw( $_COOKIE['jetpack_sso_redirect_to'] ); |
| 674 |
|
// And then purge it |
| 675 |
|
setcookie( 'jetpack_sso_redirect_to', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 676 |
|
} |
| 677 |
|
|
| 678 |
|
wp_safe_redirect( |
| 679 |
|
/** This filter is documented in core/src/wp-login.php */ |