[wp-trac] [WordPress Trac] #34722: Open P Tag in shortcode related to h tag

WordPress Trac noreply at wordpress.org
Tue Aug 30 20:50:57 UTC 2016


#34722: Open P Tag in shortcode related to h tag
-------------------------------------------------+-------------------------
 Reporter:  BackuPs                              |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Formatting                           |  Review
 Severity:  normal                               |     Version:  4.4
 Keywords:  2nd-opinion has-patch needs-testing  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------
Changes (by MattyRob):

 * keywords:  needs-patch 2nd-opinion => 2nd-opinion has-patch needs-testing


Comment:

 I've had a look through wpautop and the issue is in the handling of HTML
 within Shortcodes. I though a good way to fix is to wrap shortcode open
 and close tags in line breaks to allow paragraphing and then strip it back
 out again after.

 Seem sot work in my testing but the Regex needs a second check by someone
 with more skill. Also needs some more testing of double bracket
 shortcodes. ([[tag]sontent[[/tag]])

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


More information about the wp-trac mailing list