Make WordPress Core


Ignore:
Timestamp:
05/16/2007 05:49:32 PM (18 years ago)
Author:
ryan
Message:

Restore crack-headed arg passing to register_sidebar_widget(). fixes #4275 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r5474 r5485  
    7676    $id = sanitize_title($name);
    7777    $options = array();
    78     if ( !empty($classname) )
     78    if ( !empty($classname) && is_string($classname) )
    7979        $options['classname'] = $classname;
    80     $params = array_slice(func_get_args(), 3);
     80    $params = array_slice(func_get_args(), 2);
    8181    $args = array($id, $name, $output_callback, $options);
    8282    if ( !empty($params) )
Note: See TracChangeset for help on using the changeset viewer.