Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/23/2023 07:35:38 PM (18 months ago)
Author:
imath
Message:

Make BP_Core_Nav generate "BP Rewrites ready" navigation links

  • Remove all components $parent_url attributes when setting sub nav items.
  • Only use the bp_core_create_nav_link() $link attribute argument & the bp_core_create_subnav_link() $parent_url attribute argument if specified to preserve backward compatibility.
  • Migrates the Community search feature so that it uses BP Rewrites.
  • Perform some bp_loggedin_user_domain() in favor of bp_loggedin_user_url().
  • Update some PHPUnit tests.

Props r-a-y, johnjamesjacoby, boonebgorges

Closes https://github.com/buddypress/buddypress/pull/77
See #4954

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-invitations.php

    r13395 r13441  
    3636    );
    3737
    38     $parent_link = trailingslashit( bp_displayed_user_domain() . bp_get_members_invitations_slug() );
    39 
    4038    /* Create two subnav items for community invitations */
    4139    bp_core_new_subnav_item(
     
    4442            'slug'            => 'send-invites',
    4543            'parent_slug'     => bp_get_members_invitations_slug(),
    46             'parent_url'      => $parent_link,
    4744            'screen_function' => 'members_screen_send_invites',
    4845            'position'        => 10,
     
    5653            'slug'            => 'list-invites',
    5754            'parent_slug'     => bp_get_members_invitations_slug(),
    58             'parent_url'      => $parent_link,
    5955            'screen_function' => 'members_screen_list_sent_invites',
    6056            'position'        => 20,
Note: See TracChangeset for help on using the changeset viewer.