Changeset 11333 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
- Timestamp:
- 11/17/2021 07:25:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r11331 r11333 313 313 * Redirect legacy urls to their new permastructure. 314 314 * - /users/$id & /profile/$slug to /users/$slug 315 * - /users/ my-profile/* => /users/$slug/*315 * - /users/profile/* => /users/$slug/* 316 316 * 317 317 * See also: Support_Compat in inc/class-support-compat.php … … 345 345 } 346 346 347 if ( ' my-profile' === get_query_var( 'bbp_user' ) ) {347 if ( 'profile' === get_query_var( 'bbp_user' ) ) { 348 348 if ( is_user_logged_in() ) { 349 349 $user = wp_get_current_user(); 350 $url = str_replace( '/ my-profile/', "/{$user->user_nicename}/", $_SERVER['REQUEST_URI'] );350 $url = str_replace( '/profile/', "/{$user->user_nicename}/", $_SERVER['REQUEST_URI'] ); 351 351 } else { 352 352 $url = wp_login_url( home_url( $wp->request ) );
Note: See TracChangeset
for help on using the changeset viewer.