[wp-trac] [WordPress Trac] #30431: wptexturize() breaking shortcode-tags

WordPress Trac noreply at wordpress.org
Fri Nov 21 00:45:20 UTC 2014


#30431: wptexturize() breaking shortcode-tags
--------------------------+-----------------------------
 Reporter:  speedpartner  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  4.0.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Since upgrade from 3.9.x to 4.0.1 problems with broken shortcode-tags
 appeared. Those are because the tags (and their attributes) are run
 through wptexturize().

 shortcode-tag used

 [res_map address="someaddress, someplace"
 description="<img
 src='http://www.example.com/wp-content/uploads/Logo-logo.jpg'
 {br} {br} {br}someaddress, someplace{br} T +49 xxx{br}{br}"
 directionstext="" icon="white" style="1"
 pancontrol="yes" scalecontrol="yes" typecontrol="no" streetcontrol="no"
 zoom="12" zoomcontrol="yes" draggable="no" scrollwheel="no" width="100%"
 height="800px" maptype="roadmap" popup="yes" center="12.345,
 12.345" refresh="yes"]

 Plugin used: responsive-maps-plugin

 I've tried adding code to the plugin to not texturize that shortcode, as
 per
 http://codex.wordpress.org/Plugin_API/Filter_Reference/no_texturize_shortcodes
 (for shortcode "res_map"). But that doesn't seem to make a difference.

 It seems to me like if the preg that tries to detect shortcodes and not
 texturize those might have problems with the embedded html-code in the
 above shortcode.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30431>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list