Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/03/2023 06:18:23 AM (2 years 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/tests/phpunit/testcases/routing/root-profiles.php

    r13461 r13468  
    5656     */
    5757    public function test_member_permalink_when_members_page_is_nested_under_wp_page() {
     58        $this->markTestSkipped();
     59
     60        /**
     61         * This is no more supported in BuddyPress.
     62         */
     63
    5864        $this->set_permalink_structure( '/%postname%/' );
    5965        $p = self::factory()->post->create( array(
    60             'post_type' => 'page',
     66            'post_type' => 'post',
    6167            'post_name' => 'foo',
    6268        ) );
     
    6874        ) );
    6975
    70         $domain = home_url( $this->u->user_nicename );
    71         $this->go_to( $domain );
     76        $url = bp_members_get_user_url( $this->u->ID );
     77        $this->go_to( $url );
    7278
    7379        $this->assertTrue( bp_is_user() );
Note: See TracChangeset for help on using the changeset viewer.