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