[wp-trac] Re: [WordPress Trac] #6444: Changeset 7561 (post rc3)
leaves an open <p> at the end of the inserted gallery html
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 3 03:57:06 GMT 2008
#6444: Changeset 7561 (post rc3) leaves an open <p> at the end of the inserted
gallery html
-------------------------------------+--------------------------------------
Reporter: johnconners | Owner: andy
Type: defect | Status: reopened
Priority: high | Milestone: 2.5.1
Component: Template | Version: 2.5
Severity: critical | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Comment (by markjaquith):
{{{6444.autop.001.diff}}} moves the shortcode regex snippet generation
into its own function so that we can call it in {{{wpautop()}}}.
Desired result is that known shortcodes (like {{{[gallery]}}} do NOT get
{{{<p></p>}}}-wrapped, while unknown shortcodes like {{{[foobar]}}} DO get
wrapped.
HTML generation is up to the shortcode plugin author. They can use
{{{wpautop()}}} themselves if they want paragraph'd output, or they can
just spit out block level HTML (like {{{div}}}s and know that we won't
mess them up or wrap them in a paragraph.
--
Ticket URL: <http://trac.wordpress.org/ticket/6444#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list