[wp-trac] [WordPress Trac] #18558: Handling of dormant shortcodes is inelegant

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 1 18:13:31 UTC 2011


#18558: Handling of dormant shortcodes is inelegant
-------------------------+------------------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Shortcodes   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by trevogre):

 It seems a bit drastic to just show no shortcode to someone previewing a
 page, I'll have to look and see if there is any functions to detect
 preview mode, maybe it makes sense to keep the [nonworkingshortcode]
 outputting in preview mode. Or to have some span print out that shows
 where the code should be if you view source. I just think it might really
 confuse people that are expecting to test thier content and see that
 output.

 It might be better to allow the theme dev to set the default shortcode
 handling, put in the new code, but have it still spit out the [] by
 default. Mabye a register_default_shortcode function that you can use in
 your functions.php or a plugin to set the handling of all unregistered
 shortcodes.

 I guess I'll change the extension to .patch, is there a difference between
 .diff and .patch on some systems?

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


More information about the wp-trac mailing list