Remove old query args when updating user profile, props dd32, fixes #9038

git-svn-id: http://svn.automattic.com/wordpress/trunk@11830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-08-16 07:43:37 +00:00
parent e27b8078dd
commit eb921e186d
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ include ('admin-header.php');
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
<form id="your-profile" action="" method="post">
<form id="your-profile" action="<?php if ( IS_PROFILE_PAGE ) { echo admin_url('profile.php'); } else { echo admin_url('user-edit.php'); } ?>" method="post">
<?php wp_nonce_field('update-user_' . $user_id) ?>
<?php if ( $wp_http_referer ) : ?>
<input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />