Make WordPress Core

Changeset 5484


Ignore:
Timestamp:
05/16/2007 05:48:31 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/widgets.php

    r5473 r5484  
    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.