Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#44631 new defect (bug)

Limit the displayed search phrase for the posts list table

Reported by: birgire's profile birgire Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-screenshots has-patch
Focuses: ui, administration Cc:

Description

When searching for long text in the comments list table, the displayed search phrase is limited by 50 characters by using wp_html_excerpt().

On the other hand when searching for long text in the posts list table, the displayed search phrase is unlimited.

It would be nice to have this consistent between those two tables.

Later (another ticket) we could also consider plugins, users, media, sites, ... list tables that also display unlimited search phrase.

Attachments (3)

search-comments-with-long-text.jpg (34.7 KB) - added by birgire 7 years ago.
search-posts-with-long-text.jpg (48.3 KB) - added by birgire 7 years ago.
44631.diff (637 bytes) - added by birgire 7 years ago.

Download all attachments as: .zip

Change History (4)

@birgire
7 years ago

#1 @birgire
7 years ago

  • Keywords has-patch added

44631.diff limits the displayed search phrase, above the posts list table, to 50 characters by using wp_html_excerpt(). Similar to the comments search phrase limitation.

Note: See TracTickets for help on using tickets.