Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/07/2023 05:40:25 PM (11 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-nouveau/buddypress/members/single/settings/data.php

    r13443 r13472  
    7878                sprintf(
    7979                    '<a href="%1$s">%2$s</a>',
    80                     esc_url( bp_displayed_user_url( array( bp_nouveau_get_component_slug( 'settings' ), 'delete-account' ) ) ),
     80                    esc_url( bp_displayed_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'settings' ), 'delete-account' ) ) ) ),
    8181                    esc_html__( 'Delete Account', 'buddypress' )
    8282                )
Note: See TracChangeset for help on using the changeset viewer.