[wp-trac] [WordPress Trac] #46377: Can't remove Customizer sections whose ID contains a hyphen.

WordPress Trac noreply at wordpress.org
Thu Feb 28 20:35:19 UTC 2019


#46377: Can't remove Customizer sections whose ID contains a hyphen.
----------------------------+------------------------------
 Reporter:  jeremybubbleup  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Customize       |     Version:  5.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by williampatton):

 * severity:  major => normal


Comment:

 Hey @jeremybubbleup,

 Welcome to Trac! Could you share some code that you use to trigger this
 issue.

 On my test install I am unable to recreate this using this code:

 {{{#!php
 <?php
 $wp_customize->add_section(
         'test-section',
         array(
                 'title' => 'Test Section',
         )
 );
 $wp_customize->remove_section( 'test-section' );
 }}}

 The section is not there with this code, but if I comment out the
 `remove_section` call then the section appears in the customizer.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46377#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list