[wp-trac] [WordPress Trac] #28607: Make wpautop()'s $allblocks variable filterable

WordPress Trac noreply at wordpress.org
Mon Jun 23 08:51:24 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 nofearinc):

 Replying to [comment:3 nacin]:
 > If you don't want paragraph tags around your images, then attach your
 own filter to the_content to remove them.
 >

 If all you need is that change, a custom filter replicating the rest of
 `wpautop` would be close to 100 lines of code. Would renaming `$allblocks`
 to something else make sense?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28607#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list