mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
b4affc0640
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
33 lines
604 B
PHP
33 lines
604 B
PHP
<?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;
|
|
|
|
?>
|