Changeset 42343 for trunk/src/wp-includes/class-wp-session-tokens.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-session-tokens.php
r41162 r42343 132 132 * @param int $user_id User ID. 133 133 */ 134 $session = apply_filters( 'attach_session_information', array(), $this->user_id );134 $session = apply_filters( 'attach_session_information', array(), $this->user_id ); 135 135 $session['expiration'] = $expiration; 136 136 137 137 // IP address. 138 if ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {138 if ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) { 139 139 $session['ip'] = $_SERVER['REMOTE_ADDR']; 140 140 } … … 190 190 final public function destroy_others( $token_to_keep ) { 191 191 $verifier = $this->hash_token( $token_to_keep ); 192 $session = $this->get_session( $verifier );192 $session = $this->get_session( $verifier ); 193 193 if ( $session ) { 194 194 $this->destroy_other_sessions( $verifier );
Note: See TracChangeset
for help on using the changeset viewer.