#33497 closed defect (bug) (invalid)
Customizer textarea adds slashes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.3 |
Component: | General | Keywords: | |
Focuses: | Cc: |
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)
Note: See
TracTickets for help on using
tickets.
My mistake.
wp_filter_nohtml_kses
was causing this.