Fix undefined variable. see #16686.

git-svn-id: https://develop.svn.wordpress.org/trunk@27265 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-02-25 17:28:54 +00:00
parent 449e436ca1
commit 7b944c03a6
1 changed files with 1 additions and 1 deletions

View File

@ -2363,7 +2363,7 @@ function get_dashboard_url( $user_id = 0, $path = '', $scheme = 'admin' ) {
* @return string Dashboard url link with optional path appended.
*/
function get_edit_profile_url( $user_id = 0, $scheme = 'admin' ) {
$user_id = $user_id ? (int) $user : get_current_user_id();
$user_id = $user_id ? (int) $user_id : get_current_user_id();
if ( is_user_admin() )
$url = user_admin_url( 'profile.php', $scheme );