Changeset 19875
- Timestamp:
- 02/08/2012 05:08:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r19778 r19875 91 91 $redirect['query'] = remove_query_arg(array('p', 'page_id', 'attachment_id', 'post_type'), $redirect['query']); 92 92 } 93 } 94 95 if ( ! $redirect_url && get_option( 'home' ) != get_option( 'url' ) ) { 96 if ( $original['path'] == home_url( 'wp-admin/', 'relative' ) ) 97 $redirect_url = admin_url(); 98 elseif ( $original['path'] == home_url( 'wp-login.php', 'relative' ) ) 99 $redirect_url = site_url( 'wp-login.php', 'login' ); 93 100 } 94 101
Note: See TracChangeset
for help on using the changeset viewer.