[wp-trac] [WordPress Trac] #35168: 4.4 Customizer - serialized options can no longer be created
WordPress Trac
noreply at wordpress.org
Sat Dec 19 22:08:01 UTC 2015
#35168: 4.4 Customizer - serialized options can no longer be created
-------------------------------+------------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.4
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by westonruter):
* keywords: => reporter-feedback
Comment:
@Looimaster I cannot reproduce. Here is a video:
https://cloudup.com/cvhDAmPBkpQ
I put this code into a mu-plugin to test:
{{{#!php
<?php
function test_customize_register( \WP_Customize_Manager $wp_customize ) {
$wp_customize->add_section( 'my_section_name', array(
'title' => 'Trac 35168',
) );
$wp_customize->add_setting(
'my_theme_name_options[my_option_name]', array(
'default' => '',
'type' => 'option',
'transport' => 'postMessage',
) );
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize, 'my_theme_name_options[my_option_name]', array(
'label' => __( 'My label', 'theme-name' ),
'section' => 'my_section_name',
'type' => 'textarea',
) ) );
}
add_action( 'customize_register', 'test_customize_register' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35168#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list