|
@@ 717-721 (lines=5) @@
|
| 714 |
|
update_user_meta( $user->ID, 'wpcom_user_data', $user_data ); |
| 715 |
|
|
| 716 |
|
$remember = false; |
| 717 |
|
if ( ! empty( $_COOKIE['jetpack_sso_remember_me'] ) ) { |
| 718 |
|
$remember = true; |
| 719 |
|
// And then purge it |
| 720 |
|
setcookie( 'jetpack_sso_remember_me', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 721 |
|
} |
| 722 |
|
/** |
| 723 |
|
* Filter the remember me value. |
| 724 |
|
* |
|
@@ 741-746 (lines=6) @@
|
| 738 |
|
$redirect_to = user_can( $user, 'edit_posts' ) ? admin_url() : self::profile_page_url(); |
| 739 |
|
|
| 740 |
|
// If we have a saved redirect to request in a cookie |
| 741 |
|
if ( ! empty( $_COOKIE['jetpack_sso_redirect_to'] ) ) { |
| 742 |
|
// Set that as the requested redirect to |
| 743 |
|
$redirect_to = $_request_redirect_to = esc_url_raw( $_COOKIE['jetpack_sso_redirect_to'] ); |
| 744 |
|
// And then purge it |
| 745 |
|
setcookie( 'jetpack_sso_redirect_to', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 746 |
|
} |
| 747 |
|
|
| 748 |
|
if ( ! Jetpack::is_user_connected( $user->ID ) ) { |
| 749 |
|
$calypso_env = ! empty( $_GET['calypso_env'] ) |