[wp-trac] [WordPress Trac] #28607: Make wpautop()'s $allblocks variable filterable
WordPress Trac
noreply at wordpress.org
Sun Jun 22 20:14:03 UTC 2014
#28607: Make wpautop()'s $allblocks variable filterable
---------------------------+---------------------------------------
Reporter: walkinonwat3r | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration, template
---------------------------+---------------------------------------
Comment (by nacin):
I don't find a filter on allblocks to be particularly compelling
(something I've stated in previous wpautop tickets). Specifying that
certain elements are blocks and others aren't seems like a bad idea. It
encourages bad behavior and might make it more difficult for us to adjust
wpautop() behavior in the future.
If you don't want paragraph tags around your images, then attach your own
filter to the_content to remove them.
It's worth noting that block v. inline is an HTML4 construct, and the
concept has grown much more complex in HTML5. Us putting a filter on this
could make it more difficult for us from doing more fine-grained behavior
in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28607#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list