Changeset 9775
- Timestamp:
- 11/19/2008 05:07:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r9764 r9775 761 761 $proto = 'http://'; 762 762 763 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode($proto . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 'login' ); 763 $redirect = ( strpos($_SERVER['REQUEST_URI'], '/options.php') && wp_get_referer() ) ? wp_get_referer() : $proto . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 764 765 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( $redirect ), 'login' ); 764 766 765 767 wp_redirect($login_url);
Note: See TracChangeset
for help on using the changeset viewer.