[wp-trac] [WordPress Trac] #34722: Open P Tag in shortcode related to h tag
WordPress Trac
noreply at wordpress.org
Wed Nov 18 12:05:42 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:
--------------------------+------------------------------
Changes (by swissspidy):
* keywords: => close
Comment:
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34722#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list