[wp-trac] [WordPress Trac] #12760: Escaping shortcode conditionally

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 31 19:54:35 UTC 2010


#12760: Escaping shortcode conditionally
--------------------------+-------------------------------------------------
 Reporter:  pavelevap     |       Owner:  markjaquith
     Type:  defect (bug)  |      Status:  assigned   
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:  3.0        
 Severity:  normal        |    Keywords:             
--------------------------+-------------------------------------------------
Changes (by markjaquith):

  * owner:  => markjaquith
  * status:  new => assigned
  * version:  2.9.2 => 3.0


Old description:

> Using additional brackets [[shortcode]] for using shortcode in post works
> only when plugin (function) for this shortcode is active. But when
> deactivated, additional brackets are shown in post. It is annoying for
> many users, because editors sometimes test any plugin, wrote about it in
> post with shortcode example and after some months this plugin is
> deactivated. But in post there are misleading additional brackets. I did
> not find any solution to this problem...

New description:

 Using additional brackets is the official way to "escape" a shortcode.
 e.g. {{{[[escaped]]}}}

 Using additional brackets {{{[[shortcode]]}}} in a post works only when
 the plugin (function) for this shortcode is active. When deactivated,
 additional brackets are shown in the post. It is annoying for many users,
 because editors sometimes test a plugin, write about it in a post with
 shortcode example and after some months this plugin is deactivated. Now
 there will be additional brackets, breaking their example code.

 Input:

 {{{[[shortcode_that_does_not_exist]]}}}

 Expected output, regardless of whether that plugin is active:

 {{{[shortcode_that_does_not_exist]}}}

 Actual output, if plugin is not active:

 {{{[[shortcode_that_does_not_exist]}}}

 [edited by Mark Jaquith]

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12760#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list