Making WordPress.org


Ignore:
Timestamp:
06/02/2015 09:17:54 PM (9 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org: Use https scheme across relevant URLs.

Props netweb. Fixes #1069.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php

    r1468 r1644  
    142142                        break;
    143143                    default:
    144                         $url = trailingslashit( 'http://buddypress.org/support/forum/' . $uri_chunks[3] );
     144                        $url = trailingslashit( 'https://buddypress.org/support/forum/' . $uri_chunks[3] );
    145145                        break;
    146146                }
     
    163163    if ( 'users' == $uri_chunks[0] ) {
    164164        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 );
    166166        } else {
    167             wp_redirect( 'http://wordpress.org/' );
     167            wp_redirect( 'https://wordpress.org/' );
    168168        }
    169169        exit;
     
    175175
    176176    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 );
    178178        exit;
    179179    } 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 );
    181181        exit;
    182182    }
     
    192192
    193193    ob_start();
    194     wp_redirect( 'http://wordpress.org/' );
     194    wp_redirect( 'https://wordpress.org/' );
    195195    exit;
    196196}
Note: See TracChangeset for help on using the changeset viewer.