1 | | 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... |
| 1 | Using additional brackets is the official way to "escape" a shortcode. e.g. {{{[[escaped]]}}} |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | Input: |
| 6 | |
| 7 | {{{[[shortcode_that_does_not_exist]]}}} |
| 8 | |
| 9 | Expected output, regardless of whether that plugin is active: |
| 10 | |
| 11 | {{{[shortcode_that_does_not_exist]}}} |
| 12 | |
| 13 | Actual output, if plugin is not active: |
| 14 | |
| 15 | {{{[[shortcode_that_does_not_exist]}}} |
| 16 | |
| 17 | [edited by Mark Jaquith] |