[wp-trac] [WordPress Trac] #33497: Customizer textarea adds slashes
WordPress Trac
noreply at wordpress.org
Fri Aug 21 19:45:12 UTC 2015
#33497: Customizer textarea adds slashes
--------------------------+-----------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
{{{
$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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33497>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list