Skip to content

Conversation

@imath
Copy link
Contributor

@imath imath commented Mar 22, 2023

BP_Core_Nav is the class we use to set up BuddyPress single item navigations. It now only needs slugs to build URLs.

  • Remove all components parent_url attributes when setting sub nav items.
  • When a plugins will specify a link for the main nav item or a parent_url for the sub nav item, it will use this link to preserve backward compatibility.
  • The PR also migrates the Community search feature so that it uses BP Rewrites.
  • Update some PHPUnit tests.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/4954


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

@imath imath self-assigned this Mar 22, 2023
thebrandonallen pushed a commit to thebrandonallen/buddypress that referenced this pull request Mar 23, 2023
- 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 buddypress/buddypress#77
See #4954



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13441 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
@imath imath deleted the patch/4954-07 branch March 23, 2023 19:46
dcavins pushed a commit to dcavins/buddypress-wp-svn that referenced this pull request Jul 28, 2023
- 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 buddypress/buddypress#77
See #4954



git-svn-id: http://buddypress.svn.wordpress.org/trunk@13441 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
emaralive pushed a commit to emaralive/omt-buddypress-sync that referenced this pull request Nov 2, 2025
- 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 buddypress/buddypress#77
See #4954



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13441 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
emaralive pushed a commit to emaralive/buddypress-sync that referenced this pull request Nov 3, 2025
- 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 buddypress/buddypress#77
See #4954



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13441 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant