Opened 12 years ago
Closed 12 years ago
#4342 closed defect (bug) (worksforme)
Register and Activate disappear when they should not after new install
Reported by: | mikedonovan2011 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.5.6 |
Component: | Core | Keywords: | reporter-feedback |
Cc: |
Description
I installed WP and BP, brand new, latest versions. My host is HostPapa. I have done no customizations or anything. Just installed WP. Played with it for an hour. Then BP. Everything seemed fine after installing WP but before BP. I do have Akismet installed. I did have bbPress installed for a while, but removing it does not change the following behavior.
So now, with BP, I’m not sure what is happening with “Register” and “Activate”. Here is the behavior:
WP -> Pages: no Register or Activate page Published.
BP -> Pages -> Register = None.
BP -> Pages -> Activate = None.
On a machine where I am not logged in, Register and Activate do not appear in the menu.
Now, at WP -> Pages, with the trash empty, I create a new empty “Register” page (the slug is register). Register appears on the menu, which I expected. But clicking on it takes me to a fully formed page with fields. Is this right? I still have “None” selected at BP.
Now, at WP -> Pages, with the trash empty, I create a new “Activate” page (the slug is activate). Activate appears on the menu. But clicking on it takes me to a page that looks exactly like the Register one.
Now set:
BP -> Pages -> Register = Register
BP -> Pages -> Activate = Activate
The menu items disappear.
No. And in fact, I can't reproduce this. With a page at example.com/register/, but with the Register == None at BP > Pages, example.com/register/ is blank (with the "Edit this page" link from WP).
Could you be more specific about "latest versions" of WP and BP? Do you mean the latest stable versions, or the latest dev versions? Are you running WP Multisite?
As for the "disappearing" issue, it's by design. The default main menu is generated with wp_page_nav(), which just gives a list of pages. We assumed that most people would not want to have the Activate and Register pages in their main nav (it doesn't make sense for users who are already members, after all). So we use the function
bp_core_exclude_pages()
to take them out. Before you'd linked them to BP's Activate and Register actions, BP didn't know about them, so they weren't removed - thus the "disappearing" pages. This may be a bit confusing in your case, but the majority of users will simply allow the BP setup wizard to create and associate the pages on their behalf, so they'll never run into the issue.bp-default supports WP custom nav menus, so if you want to include Activate and Register in your menu, you can create your own at Dashboard > Appearance > Menus. (Or you can remove/modify our bp_core_exclude_pages filter.)