If you have a simple shortcode function such as this:
function short ( $atts, $content ) {
return $content;
}
Is there a simple way to have it behave as the rest of my post content does when wpautop is on? For instance, typing this in the html editor:
Here is a paragraph. Tags are not necessary, as they are applied automatically.
[short]Code[/short]
[short]Code[/short] and some other content.
A [short]code[/short] in the middle of a sentence.
Would produce:
<p>Here is a paragraph. Tags are not necessary, as they are applied automatically.</p>
<p>Code</p>
<p>Code and some other content.</p>
<p>A code in the middle of a sentence.</p>