WordPress.org

Make WordPress Core

Opened 15 months ago

Last modified 15 months ago

#44631 new defect (bug)

Limit the displayed search phrase for the posts list table

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

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 15 months ago.
search-posts-with-long-text.jpg (48.3 KB) - added by birgire 15 months ago.
44631.diff (637 bytes) - added by birgire 15 months ago.

Download all attachments as: .zip

Change History (4)

@birgire
15 months ago

#1 @birgire
15 months 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.