Changeset 1400
- Timestamp:
- 04/03/08 14:46:19 (2 years ago)
- Files:
-
- 1 modified
-
branches/0.8/bb-includes/pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.8/bb-includes/pluggable.php
r1396 r1400 535 535 536 536 return @mail($to, $subject, $message, $headers); 537 } 538 endif; 539 540 if ( !function_exists('wp_set_password') ) : 541 function wp_set_password( $password, $user_id ) { 542 global $bbdb, $bb_cache; 543 544 $hash = wp_hash_password($password); 545 $query = $bbdb->prepare("UPDATE $bbdb->users SET user_pass = %s WHERE ID = %d", $hash, $user_id); 546 $bbdb->query($query); 547 $bb_cache->flush_one( 'user', $user_id ); 537 548 } 538 549 endif;