Opened 13 years ago
Closed 13 years ago
#3487 closed defect (bug) (no action required)
BuddyPress installer/updater component slugs
Reported by: | sushkov | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | needs-patch |
Cc: | stas@… |
Description
Right now the installer is not aware of custom defined component slugs.
source:/trunk/bp-core/admin/bp-core-update.php#391 ignores possible manual definitions of components slug (ex. BP_GROUPS_SLUG
, like in case of <component>::setup_globals()
)
Change History (4)
Note: See
TracTickets for help on using
tickets.
On a new installation, BP core files have not been loaded at this point. The data in ::setup_globals() is therefore not available.
During inter-1.5 upgrades, core files *are* loaded. But in that case, we should be looking at root_slug rather than slug. (So that's a bug, and should be patched. Though it doesn't matter that much, because the Pages step won't generally be loaded on upgrades after 1.5.)
Because we are looking at root_slugs rather than regular slugs, we should *not* be respecting BP_{component}_SLUG overrides in wp-config.php, since these constants no longer affect the root slugs in BP 1.5.