[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
Fri Dec 1 02:26:02 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 good-first-bug  |     Focuses:  template
-----------------------------------------------+-----------------------

Comment (by 0x6f0):

 Thank you @Ov3rfly

 Sorry, my test case was off. I should've followed exactly what
 @karthikeyankc had but I changed it to
 {{{
 <p class="bio-desc"><?php the_author_meta('user_description'); ?></p>
 }}}
 which doesn't behave the same. So I thought I had it fixed.

 It's working now though, sorry again.

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


More information about the wp-trac mailing list