Opened 16 years ago
Closed 16 years ago
#604 closed defect (bug) (fixed)
Directory setup functions override pages created in WordPress
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | 1.0 | |
Component: | Keywords: | pages, conflict, current_component | |
Cc: | johnbillion |
Description
When you create a page in a member blog with a slug that matches a BP component (groups, members, or blogs), BP will kick in and try to load the directory listing of that component instead of allowing WordPress to show the page.
Steps to reproduce:
- In a blog on example.com, publish a page called 'Groups'. This will give you a page at
example.com/myblog/groups
(ormyblog.example.com/groups
). - Attempt to visit the page. BuddyPress will try to load the
groups-directory.php
orplugin-template.php
file from the current template and give an error, instead of letting WordPress show the page in the blog's theme.
I'm not sure if this is a problem with the priority of groups_directory_groups_setup()
being too high, or whether this is a problem with $bp->current_component
being populated when it shouldn't. Or something else.
Note: See
TracTickets for help on using
tickets.
(In [1253]) Fixes #604