Skip to:
Content

bbPress.org

Opened 2 years ago

Last modified 2 years ago

#3516 new defect (bug)

The search functionality only works for single words

Reported by: aezazshekh's profile aezazshekh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Component - Search Keywords: needs-patch
Cc:

Description

If we search the title of the topic in the forum search of https://bbpress.org/forums/forum/plugins/ page, the result is not properly displayed.

URL => https://bbpress.org/forums/forum/plugins/
Issue Video Link => https://share.cleanshot.com/Fhj9dqJbV1y4nj8mvDt7

Change History (1)

#1 @dd32
2 years ago

  • Component changed from Component - Forums to Component - Search
  • Summary changed from The search functionality of the forum search is not working properly. to The search functionality only works for single words

Video summarised:

  • Searching multiple words doesn't work.

This happens as bbp_sanitize_search_request() applies sanitize_title() and so in the example of searching for some questions looks for posts in the forums with some-questions in the title/content of the forum posts.

Note: See TracTickets for help on using tickets.