[wp-hackers] Shortcodes and formatting

Viper007Bond viper at viper007bond.com
Sun Apr 6 04:50:07 GMT 2008


Since last night, I've reconsidered my opinion. I now think there shouldn't
be any modifications to current format.

Old codes can VERY easily replaced by blank strings as demonstrated by what
looks to be an excellent plugin by Andrew Ozz.

As for HTML comments, this just adds further complications to the code, can
cause problems with some shortcodes, and is unnecessary for 99.9% of people
as they won't be devactivating the plugins they use. For that 0.1%, Andrew
has you covered.

If it's not broken, let's not fix it.

On Sat, Apr 5, 2008 at 10:14 PM, Andrew Ozz <admin at laptoptips.ca> wrote:

> Kimmo Suominen wrote:
>
> > On Fri, Apr 04, 2008 at 01:22:01PM -0800, Andrew Ozz wrote:
> >
> > > That sounds like a very good idea. Then we can add a small filter to
> > > TinyMCE to replace <!--[ (but not <!--[CDATA[) with [ on loading and put it
> > > back on saving, so the shortcodes can be typed or pasted in visual mode too.
> > >
> >
> > How would one type in [foo] in the visual editor then, without it
> > turning
> > into an HTML comment?
> >
>
> You're right. It would turn into a comment. It would be better to just
> replace the <!--[ and ]--> with &lt;!--[ and ]--&gt;. That would work fine.
>
> However since this is a plugin related problem (or rather will be),
> logically a plugin should solve it. I've just made a small plugin to hide
> orphaned shortcodes. Give it a shortcode and it will insert an empty string
> in its place. Check it out here:
> http://www.laptoptips.ca/projects/old-shortcodes/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list