Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#34089 closed defect (bug) (invalid)

wptexturize inconsistent behavior

Reported by: magenta-cuda's profile Magenta Cuda Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Formatting Keywords:
Focuses: Cc:

Description

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=&#8221;image_media&#8221; after=&#8221;&#8216;>&#8221; before=&#8221;<img src='&#8221;]

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

Change History (1)

#1 @miqrogroove
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Support questions should be posted to https://wordpress.org/support/

Note: See TracTickets for help on using tickets.