#9259 closed defect (bug) (fixed)
page_on_front dropdown on secondary sites includes items from root site
| Reported by: | boonebgorges | Owned by: | espellcaste |
|---|---|---|---|
| Priority: | normal | Milestone: | 14.5.0 |
| Component: | Administration | Version: | 14.1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Setup:
- Multisite
- BP 14.1.0, activated networkwide
- BP Classic 1.4.0, activated networkwide
When visiting Dashboard > Settings > Reading on a secondary site (ie not the root blog), the page_on_front dropdown includes the bp_pages items from the root blog.
Related: #9052
Seems like we should simply be bailing out of the function (or not hooking the callback to 'get_pages' at all) when ! bp_is_root_blog(), but happy to hear other ideas.
Attachments (1)
Change History (7)
#3
@
8 months ago
- Component Blogs → Administration
- Milestone 15.0.0 → 14.5.0
- Version → 14.1.0
Moving this to 14.5 since it is a small fix. I was able to confirm it too. Good catch.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Attaching a patch that implements the suggested fix - bailing out of
bp_core_include_directory_on_front()when not on the root blog.The Change:
This check is added right after the existing query parser check, so on secondary sites in multisite, the function returns early and doesn't add BP directory pages to the
page_on_frontdropdown.Testing (subdirectory multisite):
Verified in browser - BP pages from the root site no longer appear in the Settings > Reading > Homepage dropdown on secondary sites.