[wp-trac] [WordPress Trac] #27526: Introduce comment excerpt length filter
WordPress Trac
noreply at wordpress.org
Wed Mar 26 19:07:22 UTC 2014
#27526: Introduce comment excerpt length filter
-------------------------+------------------------------
Reporter: dannydehaan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Resolution:
Keywords: needs-docs | Focuses:
-------------------------+------------------------------
Comment (by dannydehaan):
@nacin,
I did found out, that when your comment is like the default comment from
Mr. WordPress, the excerpt length will be 21 words. This is because of the
"\n" or "\r" that is in the comment. I've fixed this by replacing the \n
\r characters for a space. I've also found an issue when the ellipsis are
used, the comment excerpt will look like this:
----
Hi, this is a comment. To delete a comment, just log in and view the
post's comments. There you will …
----
Notice the space between will and … I've fixed this now by imploding the
words with a space so you will not have this behaviour.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27526#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list