[wp-trac] [WordPress Trac] #61249: The character count in the post_excerpt is fine instead of counting words.
WordPress Trac
noreply at wordpress.org
Mon May 20 07:08:18 UTC 2024
#61249: The character count in the post_excerpt is fine instead of counting words.
-------------------------------+----------------------------------------
Reporter: sarkarripon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 6.5.3
Severity: normal | Keywords: dev-feedback needs-testing
Focuses: administration |
-------------------------------+----------------------------------------
It is known that multiple words written without spaces are counted as a
single word. This could lead to situations where an excerpt includes a
string of characters (which should be separate words) that significantly
exceeds the intended limit but is still accepted because it is counted as
only one word due to the lack of spaces.
The ultimate goal of imposing a limit on the excerpt is to ensure that it
remains concise and to the point. By not accurately counting characters,
and thus potentially allowing excerpts to be longer than intended, the
system fails to achieve its true purpose. This could affect how excerpts
are displayed or how much space they take up on a website or in an admin
interface.
Including a character count would provide a more precise and predictable
way to limit the length of excerpts. It would ensure consistency
regardless of how words are spaced and would give administrators a clear
indication of how much text they can include.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61249>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list