diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
commit | d48e85e0ac5e675ca33fac173f30c75403d1033f (patch) | |
tree | 1164430fa3b83a4d9283961b09c1576f2885e6b2 /wp-admin/profile-update.php | |
parent | 086dcde66603301531efc6d8087bd06d0546f148 (diff) | |
download | wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.gz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.xz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.zip |
Moved everything in wp-inst down a directory.
Uses's Ryan Boren's htaccess rules and mods
If you're upgrading, try this on a test server first!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@591 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/profile-update.php')
-rw-r--r-- | wp-admin/profile-update.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/wp-admin/profile-update.php b/wp-admin/profile-update.php new file mode 100644 index 0000000..4d6595b --- /dev/null +++ b/wp-admin/profile-update.php @@ -0,0 +1,34 @@ +<?php + +$parent_file = 'profile.php'; +$submenu_file = 'profile.php'; +require_once('admin.php'); + +check_admin_referer('update-profile_' . $user_ID); + +if ( !$_POST ) + die( __('No post?') ); + +$errors = edit_user($user_ID); + +if ( is_wp_error( $errors ) ) { + foreach( $errors->get_error_messages() as $message ) + echo "$message<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; + +?> |