Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4643 closed enhancement (fixed)

Use $_GET['s'] in bp_has_activities()

Reported by: djpaul's profile DJPaul Owned by: djpaul's profile DJPaul
Milestone: 1.7 Priority: normal
Severity: normal Version:
Component: Activity Keywords:
Cc:

Description

The members, groups, and blogs components all support search via $_GET[s]. bp_has_activities() does not.
This functionality would be useful for themes, and turtleshell, that want to offer easy searching.

Change History (4)

#1 @DJPaul
12 years ago

  • Type changed from defect (bug) to enhancement

#2 @DJPaul
12 years ago

  • Milestone changed from Awaiting Review to 1.7
  • Owner set to DJPaul
  • Status changed from new to accepted

#3 @djpaul
12 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [6483]) Add query string search support to bp_has_activities. Fixes #4643

This change brings the activity component inline with the members,
groups, and blogs components in terms of being able to search with a
?s= parameter on the URL.

#4 @DJPaul
12 years ago

The commit looks a bit unsafe, but the string is sanitised lower down, when the SQL is built. It's identical to how the other components' searches are currently structured.

Note: See TracTickets for help on using tickets.