[wp-trac] [WordPress Trac] #28449: Prevent widows
WordPress Trac
noreply at wordpress.org
Mon Feb 9 10:55:12 UTC 2015
#28449: Prevent widows
---------------------------+------------------------------
Reporter: benoitchantre | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.9.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Comment (by dcondrey):
Replying to [comment:4 SergeyBiryukov]:
> This should probably be added as a filter rather than hardcoded into
`the_content()`.
> > Hi,
> > I adjusted my patch, as per your suggestion, making it a filter. I
also enhanced it further to avoid relying on regex and incorporated a
couple of parameters to manipulate the number of words which should wrap
and the characters that should be filtered for.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28449#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list