Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/07/2023 05:40:25 PM (17 months ago)
Author:
imath
Message:

Use the bp_displayed_user_url() function the right way

Use the bp_members_get_path_chunks() helper function to build the arguments array expected by bp_displayed_user_url() at 8 places where a regular array of slugs were wrongly used during the BP Rewrites merge process (#4954).

Closes https://github.com/buddypress/buddypress/pull/98
Fixes #8884

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/data.php

    r13443 r13472  
    8585                sprintf(
    8686                    '<a href="%1$s">%2$s</a>',
    87                     esc_url( bp_displayed_user_url( array( bp_get_settings_slug(), 'delete-account' ) ) ),
     87                    esc_url( bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_settings_slug(), 'delete-account'  ) ) ) ),
    8888                    esc_html__( 'Delete Account', 'buddypress' )
    8989                )
Note: See TracChangeset for help on using the changeset viewer.