summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/profile-update.php
blob: a59877ba216c813a7d68f91f0b2022ae7d492d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

require_once('admin.php');

check_admin_referer();

$errors = update_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;

?>