Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#12418 closed defect (bug) (fixed)

incorrect slashing/unslashing in custom field editor

Reported by: Denis-de-Bernardy Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.2
Component: Administration Keywords:
Focuses: Cc:


Following up on #12416, if you create a post meta whose key and value are: te\'
st">test, and then save the post, the meta form will overslashed garbage.

Change History (4)

#1 @Denis-de-Bernardy
11 years ago

the key is also double-escaped, a bit further down:

	foreach ( $keys as $key ) {
		$key = esc_attr( $key );
		echo "\n<option value='" . esc_attr($key) . "'>$key</option>";

#2 @dd32
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13489]) Fix slashing in Custom fields values. Allow for the meta_key to be updated without changing meta_value. Use wpdb::insert in add_meta(). Fixes #12418

#3 @nacin
11 years ago

  • Milestone 2.9.3 deleted

Milestone 2.9.3 deleted

#4 @nacin
11 years ago

  • Milestone set to 3.0
Note: See TracTickets for help on using tickets.