WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#17636 new defect (bug)

Search subtitles are handled inconsistently across admin

Reported by: kawauso Owned by:
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 (1)

17636.patch (670 bytes) - added by jakub.tyrcha 3 years ago.

Download all attachments as: .zip

Change History (2)

jakub.tyrcha3 years ago

comment:1 jakub.tyrcha3 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 3 years ago by jakub.tyrcha (previous) (diff)
Note: See TracTickets for help on using tickets.