title: Wordpress Update User's Password with PHP
body: <p>I have a webapp that uses Wordpress for it's authentication. I have an Account options page there. When opened, it contains a password update section. I POST this to my PHP script and run this code:</p>
  
  <p><code>wp_update_user(array('ID' =&gt; getUserIDWP(), 'user_pass' =&gt; $_POST['newpass']))</code></p>
  
  <p>It logs me out of my current Wordpress session, but when I try to log back in with the password I specified there, it says that I entered an incorrect password. I'd appreciate if someone could shed some light on this subject.</p>
  
  <p>Note: the <code>getUserIDWP()</code> function is an alias for <code>$current_user-&gt;ID;</code> and the other related stuff.</p>