Changeset 33924
- Timestamp:
- 09/05/2015 09:34:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r33774 r33924 852 852 $redirect_to = get_dashboard_url( $user->ID ); 853 853 elseif ( !$user->has_cap('edit_posts') ) 854 $redirect_to = admin_url('profile.php');854 $redirect_to = $user->has_cap( 'read' ) ? admin_url( 'profile.php' ) : home_url(); 855 855 } 856 856 wp_safe_redirect($redirect_to);
Note: See TracChangeset
for help on using the changeset viewer.