[wp-trac] [WordPress Trac] #42578: PHP functions inside <p> tags creates new <p> tag, breaking the parent tag into two.

WordPress Trac noreply at wordpress.org
Mon Nov 27 22:03:04 UTC 2017


#42578: PHP functions inside <p> tags creates new <p> tag, breaking the parent tag
into two.
--------------------------------+-----------------------
 Reporter:  karthikeyankc       |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.9.2
Component:  Formatting          |     Version:  4.9
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch revert  |     Focuses:  template
--------------------------------+-----------------------

Comment (by henry.wright):

 The aim of #40040 was to make output consistent by running wptexturize,
 convert_chars, wpautop and shortcode_unautop on the author description.
 This is what's done to post content, category descriptions etc.

 #40040 hasn't been popular with some theme authors because the change may
 result in nested {{{<p>}}} tags if {{{<p>}}} tags are already used in
 author description markup.

 I agree that this needed more testing.

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


More information about the wp-trac mailing list