Changeset 4700 for trunk/includes/common/template-tags.php
- Timestamp:
- 01/22/2013 05:38:55 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/includes/common/template-tags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/template-tags.php
r4699 r4700 1132 1132 1133 1133 // Make sure we are directing somewhere 1134 if ( empty( $redirect_to ) ) 1135 $redirect_to = home_url( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : wp_get_referer() ); 1134 if ( empty( $redirect_to ) ) { 1135 if ( isset( $_SERVER['REQUEST_URI'] ) ) { 1136 $redirect_to = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 1137 } else { 1138 $redirect_to = wp_get_referer(); 1139 } 1140 } 1136 1141 1137 1142 // Remove loggedout query arg if it's there
Note:
See TracChangeset
for help on using the changeset viewer.