[wp-trac] [WordPress Trac] #31947: Allow developers to enable $br in wpautop() using a filter

WordPress Trac noreply at wordpress.org
Fri Apr 10 20:40:06 UTC 2015


#31947: Allow developers to enable $br in wpautop() using a filter
-------------------------+-----------------------------
 Reporter:  KTOmega      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Formatting   |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 wpautop() can sometimes create unwanted <br/> tags in documents, where one
 is not needed or where a <p> is more appropriate. By adding the wpautop_br
 filter in wpautop, a theme developer can choose to force disable the $br
 argument:

 {{{
 apply_filters( 'wpautop_br', '__return_false' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31947>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list