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:
parent
9c9c824de2
commit
6dcd5cc69e
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue