WordPress.org

Make WordPress Core

Changeset 11830


Ignore:
Timestamp:
08/16/09 07:43:37 (6 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r11784 r11830  
    123123<h2><?php echo esc_html( $title ); ?></h2> 
    124124 
    125 <form id="your-profile" action="" method="post"> 
     125<form id="your-profile" action="<?php if ( IS_PROFILE_PAGE ) { echo admin_url('profile.php'); } else { echo admin_url('user-edit.php'); } ?>" method="post"> 
    126126<?php wp_nonce_field('update-user_' . $user_id) ?> 
    127127<?php if ( $wp_http_referer ) : ?> 
Note: See TracChangeset for help on using the changeset viewer.