summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/profile-update.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-admin/profile-update.php')
-rw-r--r--wp-inst/wp-admin/profile-update.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/wp-inst/wp-admin/profile-update.php b/wp-inst/wp-admin/profile-update.php
index 77d5267..4d6595b 100644
--- a/wp-inst/wp-admin/profile-update.php
+++ b/wp-inst/wp-admin/profile-update.php
@@ -1,18 +1,19 @@
<?php
+$parent_file = 'profile.php';
+$submenu_file = 'profile.php';
require_once('admin.php');
-check_admin_referer();
+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/>';
- }
+if ( is_wp_error( $errors ) ) {
+ foreach( $errors->get_error_messages() as $message )
+ echo "$message<br />";
exit;
}