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

WordPress Trac noreply at wordpress.org
Wed Jan 18 22:58:35 UTC 2017

#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 wpautop        |     Focuses:  administration,
  needs-refresh                      |  template

Comment (by PigBoT):

 Replying to [comment:3 nacin]:

 I apologize for the bump.  However, I am really surprised that $allblocks
 has not been converted to a filter.  I appreciate the strict nature of the
 idea; adhering to HTML5 block elements.  HTML5 is intended to allow more
 flexibility and control.  Good, conditional, css style sheets require some
 of the inline elements to be displayed as block elements.  '$allblocks'
 does not need to be literal in the sense of HTML5 specs, but should be
 'allbocks', as the theme-author intends.  This should be a simple filter
 addition, as I think 99% of the cases, we are looking to add elements, not
 remove.  Am I missing something else here?  Do you think we could consider
 making this change?

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

More information about the wp-trac mailing list