Opened 10 years ago
Closed 10 years ago
#32119 closed defect (bug) (wontfix)
sidebar with an uppercase in id
Reported by: | fantasyworld | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | Widgets | Keywords: | |
Focuses: | javascript, administration | Cc: |
Description
When I use "register_sidebar" with id include uppercase word. Like:
register_sidebar(array( 'name' => 'name', 'id' => 'sidezh_TW-1', 'description' => '', 'before_widget' => '<div class="sidebar-outer">', 'after_widget' => '</div></div>', 'before_title' => '<h3>', 'after_title' => '</h3><div class="sidebar-content">', ));
In the Widgets admin page, after I add a new widget in the sidebar area.
Reflash the Widgets admin page, the sidebar still had no widget.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This isn't really a "bug" - the codex says you can only use lowercase letters in your id's
Function Reference/register sidebar
"id - Sidebar id - Must be all in lowercase, with no spaces (default is a numeric auto-incremented ID). If you do not set the id argument value, you will get E_USER_NOTICE messages in debug mode, starting with version 4.2."