Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#33497 closed defect (bug) (invalid)

Customizer textarea adds slashes

Reported by: Looimaster Owned by:
Priority: normal Milestone:
Component: General Version: 4.3
Severity: normal Keywords:
Cc: Focuses:

Description

$wp_customize->add_setting( 'something', array(
	'default' => '',
	'sanitize_callback' => 'wp_filter_nohtml_kses',
) );

$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'something', array(
	'label' => '',
	'section' => 'colors',
	'type' => 'textarea',
) ) );

When " is entered then it's loaded as \" next time.

Change History (2)

#1 @Looimaster
11 years ago

  • Resolutioninvalid
  • Status newclosed

My mistake. wp_filter_nohtml_kses was causing this.

#2 @swissspidy
11 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.