Make WordPress Core

Opened 18 years ago

Closed 17 years ago

#3177 closed defect (bug) (fixed)

"quoted strings" should work in the search box

Reported by: ringmaster's profile ringmaster Owned by: ringmaster's profile ringmaster
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: search quotes has-patch
Focuses: Cc:


When searching for a quoted string, the words in the quoted string should not be broken up and search for separately.

The attached patch includes support for such searches as:

stuff "other things"

This will find posts that match both "stuff" and "other things".

Check stripslashes() calls, please.

By request.

Attachments (2)

query.diff (2.1 KB) - added by ringmaster 18 years ago.
Mentioned patch.
search-with-quotes.diff (2.1 KB) - added by snakefoot 17 years ago.
Patch for branch 2.0

Download all attachments as: .zip

Change History (8)

18 years ago

Mentioned patch.

#1 @foolswisdom
18 years ago

  • Keywords has-patch added
  • Milestone set to 2.1

#2 @Viper007Bond
18 years ago

Sweet. A much needed search upgrade.

#3 @matt
18 years ago

+1, please commit

#4 @markjaquith
18 years ago

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

(In [4426]) Allow "quoted strings" to be used in searches. mega free-beer-when-I-finally-meet-you-in-person props to ringmaster. fixes #3177

#5 @snakefoot
17 years ago

  • Milestone changed from 2.1 to 2.0.eventually
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from 2.1 to 2.0

Could this be applied to the 2.0 branch ? Every time a security fix comes for 2.0 then I have to re-apply this wonderful patch.

17 years ago

Patch for branch 2.0

#6 @ryan
17 years ago

  • Milestone changed from 2.0.eventually to 2.1
  • Resolution set to fixed
  • Status changed from reopened to closed

2.0 is restricted to security fixes.

Note: See TracTickets for help on using tickets.