|
@@ 777-781 (lines=5) @@
|
| 774 |
|
update_user_meta( $user->ID, 'wpcom_user_data', $user_data ); |
| 775 |
|
|
| 776 |
|
$remember = false; |
| 777 |
|
if ( ! empty( $_COOKIE['jetpack_sso_remember_me'] ) ) { |
| 778 |
|
$remember = true; |
| 779 |
|
// And then purge it |
| 780 |
|
setcookie( 'jetpack_sso_remember_me', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 781 |
|
} |
| 782 |
|
/** |
| 783 |
|
* Filter the remember me value. |
| 784 |
|
* |
|
@@ 801-806 (lines=6) @@
|
| 798 |
|
$redirect_to = user_can( $user, 'edit_posts' ) ? admin_url() : self::profile_page_url(); |
| 799 |
|
|
| 800 |
|
// If we have a saved redirect to request in a cookie |
| 801 |
|
if ( ! empty( $_COOKIE['jetpack_sso_redirect_to'] ) ) { |
| 802 |
|
// Set that as the requested redirect to |
| 803 |
|
$redirect_to = $_request_redirect_to = esc_url_raw( $_COOKIE['jetpack_sso_redirect_to'] ); |
| 804 |
|
// And then purge it |
| 805 |
|
setcookie( 'jetpack_sso_redirect_to', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 806 |
|
} |
| 807 |
|
|
| 808 |
|
if ( ! Jetpack::is_user_connected( $user->ID ) ) { |
| 809 |
|
$calypso_env = ! empty( $_GET['calypso_env'] ) |