if ( !empty($_POST[\'pass1\'] ) && !empty( $_POST[\'pass2\'] ) ) {
if ( $_POST[\'pass1\'] == $_POST[\'pass2\'] )
wp_update_user( array( \'ID\' => $current_user->id, \'user_pass\' => esc_attr( $_POST[\'pass1\'] ) ) );
else
$error = __(\'The passwords you entered do not match. Your password was not updated.\', \'frontendprofile\');
}
我已使用上述代码更改用户密码,但出现了错误
"Warning: Cannot modify header information - headers already sent by (output started at /hermes/web02/b1441/moo.sharerecipesnowcom/sharerecipesnownet/wp-content/themes/recipe/header.php:13) in /hermes/web02/b1441/moo.sharerecipesnowcom/sharerecipesnownet/wp-includes/pluggable.php on line 720"