WordPress.org

Make WordPress Core

Changeset 21507


Ignore:
Timestamp:
08/14/12 19:10:37 (20 months ago)
Author:
ryan
Message:

Use admin_url() instead of get_edit_user_link() in wp-login.php since cookies are not yet set. Props SergeyBiryukov. fixes #14787

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

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