Changeset 10705 for trunk/wp-login.php
- Timestamp:
- 03/04/2009 08:34:52 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-login.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r10634 r10705 436 436 if ( !is_wp_error($user) ) { 437 437 // If the user can't edit posts, send them to their profile. 438 if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) )438 if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) 439 439 $redirect_to = admin_url('profile.php'); 440 440 wp_safe_redirect($redirect_to);
Note: See TracChangeset
for help on using the changeset viewer.