Make WordPress Core

Changeset 21364 for trunk/wp-login.php


Ignore:
Timestamp:
07/30/2012 06:30:03 PM (12 years ago)
Author:
ryan
Message:

Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r21311 r21364  
    627627                $redirect_to = get_dashboard_url( $user->ID );
    628628            elseif ( !$user->has_cap('edit_posts') )
    629                 $redirect_to = admin_url('profile.php');
     629                $redirect_to = get_edit_user_link();
    630630        }
    631631        wp_safe_redirect($redirect_to);
Note: See TracChangeset for help on using the changeset viewer.