Opened 14 years ago
Closed 12 years ago
#2631 closed defect (bug) (no action required)
$disabled_components['bp-blogs.php'] default to FALSE
Reported by: | kayue | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Should be true instead.
The bug I found is I installed BP in a non-multi-site Wordpress, the "Tracks blogs" option isn't showing in admin panel's BuddyPress Component Setup.
At the mean time, $disabled_componentsbp-blogs.php? default to FALSE . Since the option isn't showing in Component Setup page, there is no way I can disable the "Tracks blogs" option.
Attachments (2)
Change History (10)
#2
@
14 years ago
- Keywords needs-refresh added; has-patch dev-feedback removed
I like the idea of removing the multisite check and letting single-WP blog admins decide whether they would like to track blog posts. This patch will need to be refreshed for the trunk. Also, the helper text ('Tracks blogs, blog posts...') will need to be reworked to account for (a) the fact that there is no more WPMU, and (b) the possibility that single-WP admins might see the option.
#6
@
14 years ago
- Milestone changed from 1.3 to Future Release
Punting, because this change could potentially impact a lot of existing code around the blogs component which assumes it always runs on multisite. It would need to be carefully reviewed and the code audited.
There's a check to see if multisite is enabled, if so, then the "Blog Tracking" option is displayed in the admin area.
Might make sense to remove the check in bp-core-admin.php so standard WP admins can choose to disable blog tracking.
Attached is a patch against BP v1.2.6. Anyone see any consequences with doing this?
---
If the patch isn't acceptable, you can manually add bp-blogs.php to the bp-deactivated-components option with the "bp_deactivated_components" filter (located in bp-loader.php).
Or you can use the Block Activity Stream Types plugin:
http://wordpress.org/extend/plugins/buddypress-block-activity-stream-types/