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

WordPress Trac noreply at wordpress.org
Wed Nov 18 15:51:00 UTC 2015


#34722: Open P Tag in shortcode related to h tag
--------------------------+------------------------------
 Reporter:  BackuPs       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------

Comment (by diegocanal):

 Replying to [comment:4 swissspidy]:
 > First of all, shortcodes are parsed after `wpautop()` and
 `wptexturize()` post formatting has been applied. This means that your
 shortcode output HTML won't automatically have curly quotes applied, p and
 br tags added, and so on. If you do want your shortcode output to be
 formatted, you should call `wpautop()` or `wptexturize()` directly when
 you return the output from your shortcode handler.
 >
 > Second, inserting
 >
 > {{{
 > <h3>Integer in ex vel urna tempor ultrices.</h3> Morbi vehicula a orci
 nec dignissim.
 > }}}
 >
 > correctly outputs
 >
 > {{{
 > <h3>Integer in ex vel urna tempor ultrices.</h3><p> Morbi vehicula a
 orci nec dignissim.</p>
 > }}}
 >
 > on my local 4.4 site (without any shortcodes).
 >
 > So what you experience is actually the
 [https://codex.wordpress.org/Shortcode_API documented], expected
 behaviour. I don't see a bug here.

 Hi @swissspidy ,

 It really gives the impression you have not fully read @BackuPs
 description of the issue as she/he describes it in detail with a crystal-
 clear explanation and your answer has nothing to do with it. Please,
 carefully read it again and you will see what I mean.

 I am experiencing the same issue and it would be great if someone could
 give a thoughtful response to it.

 Best Regards,
 Diego

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


More information about the wp-trac mailing list