@@ 661-665 (lines=5) @@ | ||
658 | update_user_meta( $user->ID, 'wpcom_user_data', $user_data ); |
|
659 | ||
660 | $remember = false; |
|
661 | if ( ! empty( $_COOKIE['jetpack_sso_remember_me'] ) ) { |
|
662 | $remember = true; |
|
663 | // And then purge it |
|
664 | setcookie( 'jetpack_sso_remember_me', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
|
665 | } |
|
666 | /** |
|
667 | * Filter the remember me value. |
|
668 | * |
|
@@ 685-690 (lines=6) @@ | ||
682 | $redirect_to = user_can( $user, 'edit_posts' ) ? admin_url() : self::profile_page_url(); |
|
683 | ||
684 | // If we have a saved redirect to request in a cookie |
|
685 | if ( ! empty( $_COOKIE['jetpack_sso_redirect_to'] ) ) { |
|
686 | // Set that as the requested redirect to |
|
687 | $redirect_to = $_request_redirect_to = esc_url_raw( $_COOKIE['jetpack_sso_redirect_to'] ); |
|
688 | // And then purge it |
|
689 | setcookie( 'jetpack_sso_redirect_to', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
|
690 | } |
|
691 | ||
692 | wp_safe_redirect( |
|
693 | /** This filter is documented in core/src/wp-login.php */ |