Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/03/2023 06:18:23 AM (20 months ago)
Author:
imath
Message:

Stop using BP Legacy URL parser in favor of the new BP Rewrites API

  • Deprecate bp_core_set_uri_globals(). This function is moved inside the BP Classic compatibility plugin.
  • Introduce the new bp_register_nav action to hook to when globalizing Members single item navigations from the BP_Component class.
  • Improve bp_get_component_navigations() so that Avatar/Cover images navigation items are moved inside the Profile sub nav if the Extended profile component is active.
  • Register Avatar/Cover images Ajax actions so that these actions trigger our new URL Parser inside Ajax context.
  • Improve the BP_Core_Nav::add_nav() method so that any BP action variable slugs can be customized.
  • Improve Members & Groups component canonical redirections.
  • Handle slugs customization persistency using directory pages post metas.
  • Introduce a new repair tool to reset all slugs to BuddyPress default one.
  • Adapt some PHPUnit tests to better handle our new URL parser.

Props Props r-a-y, johnjamesjacoby, boonebgorges

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-dependency.php

    r13431 r13468  
    157157
    158158/**
    159  * Fire the 'bp_setup_nav' action, where plugins should register their navigation items.
     159 * Fire the 'bp_register_nav' action, where plugins should register their navigation items.
    160160 *
    161161 * @since 1.2.0
    162162 */
     163function bp_register_nav() {
     164    /**
     165     * Fires inside the 'bp_register_nav' function, where plugins should register their navigation items.
     166     *
     167     * @since 12.0.0
     168     */
     169    do_action( 'bp_register_nav' );
     170}
     171
     172/**
     173 * Fire the 'bp_setup_nav' action, where navigation items are generated.
     174 *
     175 * @since 1.2.0
     176 */
    163177function bp_setup_nav() {
    164178
    165179    /**
    166      * Fires inside the 'bp_setup_nav' function, where plugins should register their navigation items.
     180     * Fires inside the 'bp_setup_nav' function, where navigation items are generated.
    167181     *
    168182     * @since 1.2.0
Note: See TracChangeset for help on using the changeset viewer.