[wp-hackers] What does the last line in the wpautop function do?

Otto otto at ottodestruct.com
Thu Sep 18 04:42:08 GMT 2008

On Wed, Sep 17, 2008 at 9:00 PM, Glenn Ansley <glenn at glennansley.com> wrote:
> I found a rouge line that started with [caption] and ended with [/caption]
> but it did not appear to be generated by WP. I'm pretty sure the author
> pasted it from some other engine. After deleting that line, the post comes
> through with flying colors.
> So, problem is resolved but I'm not sure if I understand the root of it.

The [caption] shortcode is used for creating captions around images.
So if you use it in some wrong way, then yes, stuff between it will
probably get deleted.

More information about the wp-hackers mailing list