Make WordPress Core

Opened 22 years ago

Closed 22 years ago

Last modified 12 years ago

#579 closed defect (bug) (fixed)

Options saved as wp_specialchars

Reported by: ColdForged Owned by: matt
Priority: normal Milestone:
Component: Administration Version: 1.5
Severity: minor Keywords:
Cc: Focuses:

Description

In wp-admin/options.php revision 1.38, the new value of an option is now sent through wp_specialchars() and saved in the database that way. When that option is thereafter echoed back into the form, it is sent through htmlspecialchars() which encodes any ampersands from the wp_specialchars.

Therefore, something like setting the "Prepend updated with:" option under Miscellaneous to be "<strong>" ends up being encoded into "&amp;lt;strong&amp;gt;" which means that updated links have the literal <strong>Link</strong> displayed on the links list instead of the HTML strong tag.

Change History (2)

#1 @ColdForged
22 years ago

  • Patch → No

#2 @matt
22 years ago

  • fixed_in_version → 1.5
  • Owner changed from anonymous to matt
  • Resolution 10 → 20
  • Status new → closed
Note: See TracTickets for help on using tickets.