Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4643 closed enhancement (fixed)

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

Reported by: DJPaul Owned by: 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
8 years ago

  • Type changed from defect (bug) to enhancement

#2 @DJPaul
8 years ago

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

#3 @djpaul
8 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
8 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.