WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 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:

Description

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)

comment:1 @Denis-de-Bernardy6 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>";
	}

comment:2 @dd325 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

comment:3 @nacin5 years ago

  • Milestone 2.9.3 deleted

Milestone 2.9.3 deleted

comment:4 @nacin5 years ago

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