mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
cd0db4edfa
git-svn-id: http://svn.automattic.com/wordpress/trunk@2889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
24 lines
334 B
PHP
24 lines
334 B
PHP
<?php
|
|
|
|
require_once('admin.php');
|
|
|
|
check_admin_referer();
|
|
|
|
$errors = edit_user($user_ID);
|
|
|
|
if (count($errors) != 0) {
|
|
foreach ($errors as $id => $error) {
|
|
echo $error . '<br/>';
|
|
}
|
|
exit;
|
|
}
|
|
|
|
if ( 'profile' == $_POST['from'] )
|
|
$to = 'profile.php?updated=true';
|
|
else
|
|
$to = 'profile.php?updated=true';
|
|
|
|
wp_redirect( $to );
|
|
exit;
|
|
|
|
?>
|