[wp-trac] [WordPress Trac] #36605: Input types of URL and number do not render correctly in customizer
WordPress Trac
noreply at wordpress.org
Wed Apr 20 18:34:10 UTC 2016
#36605: Input types of URL and number do not render correctly in customizer
-------------------------------+------------------------------
Reporter: dpegasusm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.5
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by westonruter):
* keywords: => reporter-feedback
Comment:
I can't seem to reproduce this issue. See [attachment:36605-ok.png] which
is what I see with the following plugin added:
{{{#!php
<?php
add_action( 'customize_register', function( WP_Customize_Manager
$wp_customize ) {
$wp_customize->add_setting( 'my_counter', array(
'default' => 0,
) );
$wp_customize->add_control( 'my_counter', array(
'label' => __( 'Number of items to
show:', 'language' ),
'section' => 'title_tagline',
'settings' => 'my_counter',
'type' => 'number',
'input_attrs' => array(
'min' => 0,
'max' => 10,
),
)
);
$wp_customize->add_setting( 'my_url', array(
'default' => 'http://example.com/',
) );
$wp_customize->add_control( 'my_url', array(
'label' => __( 'URL:', 'language' ),
'section' => 'title_tagline',
'settings' => 'my_url',
'type' => 'url',
)
);
}, 100 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36605#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list