Make WordPress Core


Ignore:
Timestamp:
11/18/2010 11:07:59 PM (13 years ago)
Author:
ryan
Message:

Link to edit profile screen within same admin if in network or user admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r16334 r16475  
    23202320    $user = (int) $user;
    23212321
    2322     $url = get_dashboard_url( $user, 'profile.php', $scheme );
     2322    if ( is_user_admin() )
     2323        $url = user_admin_url( 'profile.php', $scheme );
     2324    elseif ( is_network_admin() )
     2325        $url = network_admin_url( 'profile.php', $scheme );
     2326    else
     2327        $url = get_dashboard_url( $user, 'profile.php', $scheme );
    23232328
    23242329    return apply_filters( 'edit_profile_url', $url, $user, $scheme);
Note: See TracChangeset for help on using the changeset viewer.