Changeset 11333
- Timestamp:
- 11/17/2021 07:25:55 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-well-known.php
r11330 r11333 19 19 20 20 if ( '/.well-known/change-password' === $_SERVER['REQUEST_URI'] ) { 21 wp_safe_redirect( 'https://wordpress.org/support/users/ my-profile/edit/' );21 wp_safe_redirect( 'https://wordpress.org/support/users/profile/edit/' ); 22 22 exit; 23 23 } -
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.