Changeset 1644 for sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php
- Timestamp:
- 06/02/2015 09:17:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php
r1468 r1644 142 142 break; 143 143 default: 144 $url = trailingslashit( 'http ://buddypress.org/support/forum/' . $uri_chunks[3] );144 $url = trailingslashit( 'https://buddypress.org/support/forum/' . $uri_chunks[3] ); 145 145 break; 146 146 } … … 163 163 if ( 'users' == $uri_chunks[0] ) { 164 164 if ( ! empty( $uri_chunks[1] ) ) { 165 wp_redirect( 'http ://profiles.wordpress.org/' . $uri_chunks[1] . '/', 301 );165 wp_redirect( 'https://profiles.wordpress.org/' . $uri_chunks[1] . '/', 301 ); 166 166 } else { 167 wp_redirect( 'http ://wordpress.org/' );167 wp_redirect( 'https://wordpress.org/' ); 168 168 } 169 169 exit; … … 175 175 176 176 if ( $user = get_user_by( 'login', urldecode( $uri_chunks[0] ) ) ) { 177 wp_redirect( 'http ://profiles.wordpress.org/' . $user->user_nicename . '/', 301 );177 wp_redirect( 'https://profiles.wordpress.org/' . $user->user_nicename . '/', 301 ); 178 178 exit; 179 179 } elseif ( $user = get_user_by( 'login', str_replace( ' ', '', urldecode( $uri_chunks[0] ) ) ) ) { 180 wp_redirect( 'http ://profiles.wordpress.org/' . $user->user_nicename . '/', 301 );180 wp_redirect( 'https://profiles.wordpress.org/' . $user->user_nicename . '/', 301 ); 181 181 exit; 182 182 } … … 192 192 193 193 ob_start(); 194 wp_redirect( 'http ://wordpress.org/' );194 wp_redirect( 'https://wordpress.org/' ); 195 195 exit; 196 196 }
Note: See TracChangeset
for help on using the changeset viewer.