Changeset 30595 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 11/28/2014 03:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r30591 r30595 2769 2769 * 2770 2770 * @since 4.1.0 2771 *2772 2771 */ 2773 2772 function wp_ajax_destroy_sessions() { … … 2793 2792 } 2794 2793 2794 // 'token' is only set if the initiating user is viewing their own profile-editing screen. 2795 2795 if ( isset( $_POST['token'] ) ) { 2796 2796 $keep = wp_unslash( $_POST['token'] ); … … 2801 2801 $sessions = WP_Session_Tokens::get_instance( $user->ID ); 2802 2802 2803 /* 2804 * If $keep is a string, then the current user is destroying all of their own sessions 2805 * except the current one. If $keep is not a string, the current user is destroying all 2806 * of another user's sessions with no exceptions. 2807 */ 2803 2808 if ( is_string( $keep ) ) { 2804 2809 $sessions->destroy_others( $keep );
Note: See TracChangeset
for help on using the changeset viewer.