Making WordPress.org


Ignore:
Timestamp:
01/09/2019 12:50:44 AM (8 years ago)
Author:
dd32
Message:

BuddyPress.org: Only consider the path when determining BuddyPress redirects, appending query variables could cause some of these to be missed or redirected to the incorrect location.

File:
1 edited

Legend:

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

    r1644 r8051  
    8686function bporg_redirect() {
    8787
    88         // Explode the request (could use parse_url() here too)
    89         $uri_chunks = explode( '/', $_SERVER['REQUEST_URI'] );
     88        // Explode the request. parse_url() is used here to exclude any query args which caused some redirects to be missed.
     89        $uri_chunks = explode( '/', parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ) );
    9090
    9191        // Redirect /forums/ to /support/
Note: See TracChangeset for help on using the changeset viewer.