Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/18/2023 04:11:04 AM (2 years ago)
Author:
imath
Message:

BP Rewrites: optimize the code used to build URLs

The bp_members_get_path_chunks() & bp_groups_get_path_chunks() functions are making sure URL chunks are customized according to the slugs settings. Instead of redoing at many places all or some of the operations performed by these functions, update the code to build URLs so that it uses these functions.

See #4954
Fixes #8923
Closes https://github.com/buddypress/buddypress/pull/117

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/groups/template.php

    r13437 r13503  
    10061006    public function test_bp_bp_get_group_form_action() {
    10071007        $g   = $this->factory->group->create();
    1008         $p   = 2;
     1008        $p   = 'members';
    10091009        $url = bp_get_group_url(
    10101010            $g,
Note: See TracChangeset for help on using the changeset viewer.