profile-update.php no longer needed. see #5736
git-svn-id: http://svn.automattic.com/wordpress/trunk@6703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0483b98514
commit
63f6070325
|
@ -1,28 +0,0 @@
|
||||||
<?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;
|
|
||||||
|
|
||||||
?>
|
|
Loading…
Reference in New Issue