Changeset 1575 for trunk/bb-includes/pluggable.php
- Timestamp:
- 07/02/2008 02:53:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bb-includes/pluggable.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/pluggable.php
r1562 r1575 5 5 if ( !wp_validate_auth_cookie() ) { 6 6 nocache_headers(); 7 header('Location: ' . bb_get_ option('uri'));7 header('Location: ' . bb_get_uri(null, null, BB_URI_CONTEXT_HEADER)); 8 8 exit(); 9 9 } … … 192 192 193 193 $lp = parse_url($location); 194 $wpp = parse_url(bb_get_ option('uri'));194 $wpp = parse_url(bb_get_uri()); 195 195 196 196 $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), isset($lp['host']) ? $lp['host'] : ''); 197 197 198 198 if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) ) 199 $location = bb_get_ option('uri');199 $location = bb_get_uri(null, null, BB_URI_CONTEXT_HEADER); 200 200 201 201 wp_redirect($location, $status); … … 412 412 if (!count(preg_grep('/^from:\s/im', $headers))) { 413 413 if (!$from = bb_get_option('from_email')) 414 if ($uri_parsed = parse_url(bb_get_ option('uri')))414 if ($uri_parsed = parse_url(bb_get_uri())) 415 415 if ($uri_parsed['host']) 416 416 $from = 'bbpress@' . trim(preg_replace('/^www./i', '', $uri_parsed['host']));
Note: See TracChangeset
for help on using the changeset viewer.