Changeset 2336 for sites/trunk/common/includes/wporg-sso/wp-plugin.php
- Timestamp:
- 01/20/2016 03:19:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/wp-plugin.php
r2322 r2336 98 98 if ( in_array( $get['action'], array( 'logout', 'loggedout' ) ) ) { 99 99 // But make sure to show our custom screen when needed 100 $get['redirect_to'] = '/loggedout/';100 $get['redirect_to'] = $this->_get_safer_redirect_to(); 101 101 } 102 102 $this->_safe_redirect( add_query_arg( $get, $this->sso_login_url . '/wp-login.php' ) ); … … 175 175 176 176 if ( ! empty( $_GET['redirect_to'] ) ) { 177 $this->_safe_redirect( wp_unslash( $_GET['redirect_to']) );177 $this->_safe_redirect( $this->_get_safer_redirect_to() ); 178 178 } else { 179 179 $this->_safe_redirect( 'https://wordpress.org/support/profile/' . wp_get_current_user()->user_nicename );
Note: See TracChangeset
for help on using the changeset viewer.