The signature of newer function is different:
register_sidebar_widget
( $name,
$output_callback
, $classname );
wp_register_sidebar_widget
( $id, $name,
$output_callback
, $options );
Can’t simply replace one function with another here, need to re-order arguments accordingly.