[wp-trac] [WordPress Trac] #27513: Widget Customizer: - Control Sections do not show if sidebar id do not start with 'sidebar' name
WordPress Trac
noreply at wordpress.org
Tue Mar 25 16:12:41 UTC 2014
#27513: Widget Customizer: - Control Sections do not show if sidebar id do not
start with 'sidebar' name
--------------------------+-----------------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
.control-sections do not show on on wp-admin/customize.php page for the
sidebars IF the sidebar id's do not start with a 'sidebar' name.
'''How to replicate:'''
replace:
sidebar-1, sidebar-2 and sidebar-3
with:
name-sidebar-1, name-sidebar-2 and name-sidebar-3
See the function where to replace:
{{{
function twentyfourteen_widgets_init() {
require get_template_directory() . '/inc/widgets.php';
register_widget( 'Twenty_Fourteen_Ephemera_Widget' );
register_sidebar( array(
'name' => __( 'Primary Sidebar', 'twentyfourteen'
),
'id' => 'sidebar-1',
'description' => __( 'Main sidebar that appears on the
left.', 'twentyfourteen' ),
'before_widget' => '<aside id="%1$s" class="widget
%2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Content Sidebar', 'twentyfourteen'
),
'id' => 'sidebar-2',
'description' => __( 'Additional sidebar that appears on
the right.', 'twentyfourteen' ),
'before_widget' => '<aside id="%1$s" class="widget
%2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Footer Widget Area',
'twentyfourteen' ),
'id' => 'sidebar-3',
'description' => __( 'Appears in the footer section of
the site.', 'twentyfourteen' ),
'before_widget' => '<aside id="%1$s" class="widget
%2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'widgets_init', 'twentyfourteen_widgets_init' );
}}}
in functions.php file of Twenty Fourteen theme and go to wp-
admin/customize.php and you will see that control sections do not show for
these sidebars.
I'm using the latest trac version.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27513>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list