CoreFiles by mySites.guru
profile-update.php30 lines, 524 bytes, from wordpress-2.2.zip
Raw History Compare with 2.1.3
md5
17066d8468c4b7ea9dea3d0653833036
sha1
e4672ae1327dbfff5699130c698c2f7d91d241a3
sha256
d03298a558994e7c084c90caa4e1ba47a1f92194dd7f7f195768d5187c4d846e
<?php

$parent_file = 'profile.php';
$submenu_file = 'profile.php';
require_once('admin.php');

check_admin_referer('update-profile_' . $user_ID);

if ( !$_POST )
	wp_die( __('No post?') );

$errors = edit_user($user_ID);

if ( is_wp_error( $errors ) ) {
	foreach( $errors->get_error_messages() as $message )
		echo "$message<br />";
	exit;
}

do_action('personal_options_update');

if ( 'profile' == $_POST['from'] )
	$to = 'profile.php?updated=true';
else
	$to = 'profile.php?updated=true';

wp_redirect( $to );
exit;

?>

The same content is in 37 releases, WordPress 2.1-beta1 to 2.3.3. See them all, or every version of this file.