Opened 16 years ago
Closed 16 years ago
#8858 closed defect (bug) (wontfix)
register widgets in admin panel descriptions are not shown
Reported by: | dsalon | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | widgets administration |
Focuses: | Cc: |
Description
The first lines of function register_sidebar_widget in widgets.php reads as follows:
function register_sidebar_widget($name, $output_callback, $classname = ) {
Compat
if ( is_array($name) ) {
if ( count($name) == 3 )
else
$name = $name[0];
}
$id = sanitize_title($name);
$options = array();
...
I believe that the correct function should read:
function register_sidebar_widget($name, $output_callback, $classname = , $options = array() ) {
Compat
if ( is_array($name) ) {
if ( count($name) == 3 )
else
$name = $name[0];
}
$id = sanitize_title($name);
$options = array();
...
Change History (1)
Note: See
TracTickets for help on using
tickets.
Use wp_register_sidebar_widget(). register_sidebar_widget() is deprecated.