Changeset 6400 for trunk/wp-includes/pluggable.php
- Timestamp:
- 12/17/2007 09:12:28 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/pluggable.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r6396 r6400 434 434 $nonce = $_REQUEST['_ajax_nonce'] ? $_REQUEST['_ajax_nonce'] : $_REQUEST['_wpnonce']; 435 435 if ( !wp_verify_nonce( $nonce, $action ) ) { 436 $current_ name= '';436 $current_id = ''; 437 437 if ( ( $current = wp_get_current_user() ) && $current->ID ) 438 $current_ name = $current->user_login;439 if ( !$current_ name)438 $current_id = $current->ID; 439 if ( !$current_id ) 440 440 die('-1'); 441 441 … … 447 447 } 448 448 449 if ( $current_name != $user || empty($auth_cookie) || !wp_validate_auth_cookie( $auth_cookie ) ) 449 if ( empty($auth_cookie) ) 450 die('-1'); 451 452 if ( ! $user_id = wp_validate_auth_cookie( $auth_cookie ) ) 453 die('-1'); 454 455 if ( $current_id != $user_id ) 450 456 die('-1'); 451 457 }
Note: See TracChangeset
for help on using the changeset viewer.