Opened 15 years ago
Closed 15 years ago
#1793 closed defect (bug) (fixed)
Move theme content cookies from core to theme HAS-PATCH
Reported by: | MrMaz | Owned by: | apeatling |
---|---|---|---|
Milestone: | 1.2 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | has-patch | |
Cc: |
Description
This patch moves the groups, members, forums, and blogs theme dependent cookies out of core and into the default theme.
Activity cookies are still in core, but some forward compatibility has been put in place.
Attachments (4)
Change History (8)
#2
@
15 years ago
- Type changed from enhancement to defect
Here's the patch I've worked on based on the changes from MrMaz. It keeps all of the parameter logic inside the actual template tags so any other theme can still function correctly if they pass no parameters to the loops. There is no actual creation of the primary querystring in the theme - all we are doing is overriding parameters based on cookie values that are set.
You can filter the parameters that are overridden in the template by using this filter:
apply_filters( 'bp_dtheme_ajax_querystring', $querystring, $object, $filter, $scope, $page, $search_terms, $extras );
About to attach a patch that moves ALL cookies to the theme so ignore the first patch.