[wp-trac] [WordPress Trac] #47867: wp_trim_excerpt and wp_trim_words don't validate the excerpt length (int)
WordPress Trac
noreply at wordpress.org
Tue Aug 13 09:37:28 UTC 2019
#47867: wp_trim_excerpt and wp_trim_words don't validate the excerpt length (int)
--------------------------------------+------------------------------
Reporter: pikamander2 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by donmhico):
Hey @pikamander2, I see your point. I supposed that if existing plugins /
themes do want to use the default 55, they should have not passed anything
as `$num_words` instead of passing empty string or null. And WP.org stays
true to provide backward compatibility and not breaking any existing
behaviour as much as possible.
I'll upload an updated patch shortly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47867#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list