[wp-hackers] Shortcodes and formatting

Seth Chromick seth at thenextwave.biz
Mon Mar 31 18:03:15 GMT 2008


Duane - I couldn't agree with you more. I've never tried to put [] codes 
inside HTML comments in my post before... I would assume that anything 
the plugin replaced inside the brackets would be commented about by default.

Duane Storey wrote:
> The only thing I don't like about plugins that use shortcodes is that
> if you disable the plugin, you're left with a bunch of markup that no
> longer renders.   While not as user friendly, it would be nice if
> Wordpress supported shortcodes in HTML comment sections, i.e.
> 
> <!-- flickr: <someid> -->
> 
> or something like that.  That way when the plugin was disabled the
> user wouldn't see anything.
> 
> On 3/31/08, Aaron D. Campbell <aaron at xavisys.com> wrote:
>> Looks like this is already in trunk!  I added my comments on the ticket
>>  (as well as another diff), but I'll put them here for anyone who cares:
>>
>>  I actually support a slightly different solution. I think that there are
>>  cases where post-wpautop() is great (most of the time for me), but I can
>>  see that there are times where you would want pre-wpautop() (especially
>>  for the less-advanced users). We should be able to do both. I'm
>>  attaching a patch that will allow people to use shortcodes as they
>>  worked before this ticket (pre-wpautop), or they can use them
>>  post-wpautop by passing a 3rd argument to add_shortcode like:
>>
>>  add_shortcode('googleMap', array($wpGoogleMaps, 'testTags'), true);
>>
>>  For me personally, the default should be the latter (priority 11), but I
>>  thought this would have as little impact on people currently developing
>>  for 2.5. However, if you think the default should change, I can upload
>>  another diff.
>>
>>
>>
>>  Mark Jaquith wrote:
>>  > On Mar 31, 2008, at 10:37 AM, Aaron D. Campbell wrote:
>>  >> Is there a way to run these shortcodes post-formatting?
>>  >
>>  >
>>  > Please see http://trac.wordpress.org/ticket/6444, which moves
>>  > shortcodes to "11" (post-formatting).  I'd appreciate it if you could
>>  > apply that patch and see how your Google maps HTML fares.
>>
>> _______________________________________________
>>  wp-hackers mailing list
>>  wp-hackers at lists.automattic.com
>>  http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 


More information about the wp-hackers mailing list