Fix undefined variable. see #16686.

Built from https://develop.svn.wordpress.org/trunk@27265


git-svn-id: http://core.svn.wordpress.org/trunk@27122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-02-25 17:29:13 +00:00
parent 9c9c824de2
commit 6dcd5cc69e
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. * @return string Dashboard url link with optional path appended.
*/ */
function get_edit_profile_url( $user_id = 0, $scheme = 'admin' ) { 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() ) if ( is_user_admin() )
$url = user_admin_url( 'profile.php', $scheme ); $url = user_admin_url( 'profile.php', $scheme );