Making WordPress.org

Changeset 14642


Ignore:
Timestamp:
01/28/2026 03:45:38 AM (8 months ago)
Author:
dd32
Message:

Support Forums: Audit Log: Use the global english forums unless we're on a localised network. bbp_get_user_profile_edit_url() can return incorrect results on other places on WordPress.org.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-audit-log.php

    r14640 r14642  
    205205                        }
    206206
    207                         $user_edit_url = bbp_get_user_profile_edit_url( $user_id );
    208 
    209                         // On login.wordpress.org, the link should direct to the global forums.
    210                         if ( defined( 'WPORG_LOGIN_REGISTER_BLOGID' ) && WPORG_LOGIN_REGISTER_BLOGID == get_current_blog_id() ) {
     207                        // If we're on a Rosetta network, and bbPress is active, link to the local profile edit page.
     208                        if ( defined( 'IS_ROSETTA_NETWORK' ) && IS_ROSETTA_NETWORK && function_exists( 'bbp_get_user_profile_edit_url' ) ) {
     209                                $user_edit_url = bbp_get_user_profile_edit_url( $user_id );
     210                        } else {
     211                                // Link to the global WordPress.org profile edit page.
    211212                                $user_edit_url = sprintf( 'https://wordpress.org/support/users/%s/edit/', get_userdata( $user_id )->user_nicename );
    212213                        }
Note: See TracChangeset for help on using the changeset viewer.