WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 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 )

$name = sprintf($name[0], $name[2]);

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 )

$name = sprintf($name[0], $name[2]);

else

$name = $name[0];

}

$id = sanitize_title($name);

$options = array();
...

Change History (1)

comment:1 @ryan6 years ago

  • Milestone 2.8 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Use wp_register_sidebar_widget(). register_sidebar_widget() is deprecated.

Note: See TracTickets for help on using tickets.