CoreFiles by mySites.guru
profile-update.php33 lines, 576 bytes, from wordpress-2.0.1.zip
Raw History Compare with 2.0
md5
8e9823054da7ae5d2fafe8a52395dece
sha1
58af0d066d7920c14641fb084b62b660006846c6
sha256
9d3d898615c6be5d1e5d6d8db213bd5260686c38536961eaf0d0a7afb8e99129
<?php

require_once('admin.php');

check_admin_referer();

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 3 releases, WordPress 2.0 to 2.0.1. See them all, or every version of this file.