CoreFiles by mySites.guru
profile-update.php33 lines, 604 bytes, from wordpress-2.0.4.zip
Raw History Compare with 2.0.1
md5
b11ef38aa0d2212ee858ea2c998816a6
sha1
846878062e5bcaf65752a9287b68deb0b07ec621
sha256
4fdc5029388b1034cdf2c569a75dbf760508d3ecbd13c3dd396001778e374612
<?php

require_once('admin.php');

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

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

$errors = edit_user($user_ID);

if (count($errors) != 0) {
	foreach ($errors as $id => $error) {
		echo $error . '<br/>';
	}
	exit;
}

if ( !isset( $_POST['rich_editing'] ) )
	$_POST['rich_editing'] = 'false';
update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );

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 24 releases, WordPress 2.0.4 to 2.0.11. See them all, or every version of this file.