Changeset 10388
- Timestamp:
- 10/19/2020 04:36:28 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php
r10361 r10388 93 93 } 94 94 95 // Redirect /forums/ to /support/ 96 if ( $uri_chunks[1] === 'forums'&& empty( $uri_chunks[2] ) ) {95 // Redirect /forums/ to /support/ & /community/ to /support 96 if ( ( $uri_chunks[1] === 'forums' || $uri_chunks[1] === 'community' ) && empty( $uri_chunks[2] ) ) { 97 97 bp_core_redirect( home_url( '/support/' ) ); 98 98 } … … 103 103 } 104 104 105 // Redirect old members profile pages to 105 // Redirect old members profile pages to their new location 106 106 if ( ( $uri_chunks[1] === 'community' ) && ( $uri_chunks[2] === 'members' ) && ! empty( $uri_chunks[3] ) ) { 107 107 bp_core_redirect( home_url( '/members/' . $uri_chunks[3] . '/' ) ); … … 109 109 110 110 // Redirect old plugin groups to deprecated plugin forums 111 if ( ( $uri_chunks[1] === 'community' ) && isset( $uri_chunks[2] ) &&( $uri_chunks[2] === 'groups' ) ) {111 if ( ( $uri_chunks[1] === 'community' ) && ( $uri_chunks[2] === 'groups' ) ) { 112 112 113 113 // /community/groups/ to Support root.
Note: See TracChangeset
for help on using the changeset viewer.