Ticket #6969 (new enhancement)

Opened 2 months ago

Last modified 2 months ago

Don't apply wptexturize() to the insides of shortcode tags

Reported by: Viper007Bond Assigned to: tellyworth
Priority: normal Milestone: 2.7
Component: General Version: 2.5.1
Severity: normal Keywords: needs-patch
Cc:

Description

I have this for my post contents:

[code lang="php"]$foo = 'bar';[/code]

The problem is my shortcode function gets this passed to it for the content string:

$foo = ‘bar’;

wptexturize() should be smart enough to not format the contents of registered shortcodes. If plugins want their contents formatted, they can pass the contents to the wptexturize() function itself.

Change History

05/14/08 16:39:47 changed by ryan

  • owner changed from anonymous to tellyworth.