Skip to:
Content

Opened 4 years ago

Last modified 2 months ago

#1426 new defect (bug)

BP_ENABLE_ROOT_PROFILES conflicts with multisite subdirectory slugs

Reported by: xevo Owned by:
Milestone: Future Release Priority: major
Severity: normal Version:
Component: Core Keywords:
Cc: onetarek@…

Description

When you make a blog post/page with for example "register" as the permalink, it'll overwrite your buddypress's /register page.

Same thing when using BP_ENABLE_ROOT_PROFILES, if you use a blog name that is already used as a username account, when you go to the user account you get the blog with that name instead.

So the basic buddypress permalinks need to be unoverwriteable by page or blog posts and when using BP_ENABLE_ROOT_PROFILES, the blog name needs to be checked whether it already is being used by a username or the permalink needs to be changed (example: /admin/blog).

Change History (5)

comment:1 DJPaul4 years ago

The BP_ENABLE_ROOT_PROFILES thing would only affect subdirectory installs of WPMU.

comment:2 johnjamesjacoby4 years ago

  • Component set to Core
  • Milestone set to 1.3

There's no way to do slug collision detection at the moment. Probably should run everything through unique_slug at some point.

Moving to 1.3 for review.

comment:3 johnjamesjacoby4 years ago

  • Milestone changed from 1.3 to Future Release

Moving to future release, since this is unlikely to make it into 1.3. This starts off as a WordPress issue with permalink and slug collisions, so until WP handles this better, we're at a stand-still.

comment:4 r-a-y14 months ago

  • Keywords permalink removed
  • Severity set to normal
  • Summary changed from Permalinks get overwritten by others, on multiple places. to BP_ENABLE_ROOT_PROFILES conflicts with multisite subdirectory slugs

When you make a blog post/page with for example "register" as the permalink, it'll overwrite your buddypress's /register page.

Resolved in BP 1.5+ as we now use WP pages for this.

Same thing when using BP_ENABLE_ROOT_PROFILES, if you use a blog name that is already used as a username account, when you go to the user account you get the blog with that name instead.

I'm guessing this is still valid. Changing title of ticket to reflect this.

comment:5 onetarek2 months ago

  • Cc onetarek@… added

I wrote a solution for a similar problem that I am using in my plugins. http://onetarek.com/wordpress/wordpress-filter-hooks-on-creating-slug-check-availability-of-slug/
This solution should be included in wp core. At first WP should fix it then Buddypress.
So all of you should comment on this core ticket https://core.trac.wordpress.org/ticket/24776


Note: See TracTickets for help on using tickets.