2005-09-06 02:58:02 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('admin.php');
|
|
|
|
|
|
|
|
check_admin_referer();
|
|
|
|
|
2005-09-18 15:44:14 -04:00
|
|
|
$errors = edit_user($user_ID);
|
2005-09-06 02:58:02 -04:00
|
|
|
|
2005-09-13 20:03:02 -04:00
|
|
|
if (count($errors) != 0) {
|
|
|
|
foreach ($errors as $id => $error) {
|
|
|
|
echo $error . '<br/>';
|
|
|
|
}
|
|
|
|
exit;
|
2005-09-06 02:58:02 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( 'profile' == $_POST['from'] )
|
|
|
|
$to = 'profile.php?updated=true';
|
|
|
|
else
|
|
|
|
$to = 'profile.php?updated=true';
|
|
|
|
|
|
|
|
wp_redirect( $to );
|
|
|
|
exit;
|
|
|
|
|
2005-09-05 23:08:09 -04:00
|
|
|
?>
|