[wp-trac] [WordPress Trac] #34089: wptexturize inconsistent behavior

WordPress Trac noreply at wordpress.org
Wed Sep 30 01:19:22 UTC 2015


#34089: wptexturize inconsistent behavior
--------------------------+-----------------------------
 Reporter:  Magenta Cuda  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  4.3.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Given post content:

 {{{
 [show_custom_field field="image_media" before="<img src='" after="'>"]
 [show_custom_field field="image_media" after="'>" before="<img src='"]
 }}}

 wptexturize returns:

 {{{
 [show_custom_field field="image_media" before="<img src='" after="'>"]
 [show_custom_field field=”image_media”
 after=”‘>” before=”<img src='”]
 }}}

 The only difference between the two shortcodes is the order of the
 attributes. Why did it texturize the quote marks in the second shortcode?

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


More information about the wp-trac mailing list