|
@@ 793-797 (lines=5) @@
|
| 790 |
|
); |
| 791 |
|
|
| 792 |
|
$remember = false; |
| 793 |
|
if ( ! empty( $_COOKIE['jetpack_sso_remember_me'] ) ) { |
| 794 |
|
$remember = true; |
| 795 |
|
// And then purge it |
| 796 |
|
setcookie( 'jetpack_sso_remember_me', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 797 |
|
} |
| 798 |
|
/** |
| 799 |
|
* Filter the remember me value. |
| 800 |
|
* |
|
@@ 817-822 (lines=6) @@
|
| 814 |
|
$redirect_to = user_can( $user, 'edit_posts' ) ? admin_url() : self::profile_page_url(); |
| 815 |
|
|
| 816 |
|
// If we have a saved redirect to request in a cookie |
| 817 |
|
if ( ! empty( $_COOKIE['jetpack_sso_redirect_to'] ) ) { |
| 818 |
|
// Set that as the requested redirect to |
| 819 |
|
$redirect_to = $_request_redirect_to = esc_url_raw( $_COOKIE['jetpack_sso_redirect_to'] ); |
| 820 |
|
// And then purge it |
| 821 |
|
setcookie( 'jetpack_sso_redirect_to', ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN ); |
| 822 |
|
} |
| 823 |
|
|
| 824 |
|
wp_safe_redirect( |
| 825 |
|
/** This filter is documented in core/src/wp-login.php */ |