WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 4 months ago

#17636 assigned defect (bug)

Search subtitles are handled inconsistently across admin

Reported by: kawauso Owned by: chriscct7
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.2
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Try the following strings in the Comments admin screen and any other:

\'"\fs"\\\"

imareallylongstringlookatmegoandgoandgoandgoandgoandgoandgoandgoandgoandgoandgoandgoandgoandgo

The Comments screen uses strip_slashes() and wp_html_excerpt() to limit search strings to 50 characters, while other screens do not.

Attachments (2)

17636.patch (670 bytes) - added by jakub.tyrcha 5 years ago.
17636.2.diff (536 bytes) - added by lukecavanagh 4 months ago.
Patch Refreshed

Download all attachments as: .zip

Change History (6)

@jakub.tyrcha
5 years ago

#1 @jakub.tyrcha
5 years ago

  • Keywords has-patch added

All we need is wp_strip_all_tags (well I'm not sure if we need even this one, but the excerpt is certainly not needed). Besides, only the display is stripped - not the search string itself (tested).

Last edited 5 years ago by jakub.tyrcha (previous) (diff)

#2 @chriscct7
2 years ago

  • Keywords needs-refresh added; has-patch removed

#3 @chriscct7
10 months ago

  • Owner set to chriscct7
  • Status changed from new to assigned

@lukecavanagh
4 months ago

Patch Refreshed

#4 @lukecavanagh
4 months ago

  • Keywords has-patch added; needs-refresh removed
Note: See TracTickets for help on using tickets.