BTW - for future readers - here is the code snippets I made:
<?php
/**
* @package 2010 Mods
* @version 1.0
*/
/*
Plugin Name: 2010 Modifications
Plugin URI: http://sanforddickert.com/#
Description: This makes modifications to the standard twentyten theme to enable Political Gastronomica
Author: Sanford Dickert
Version: 1.0
Author URI: http://sanforddickert.com/
*/
/**
* PG Calendar widget class
*
* @since 2.8.0
*/
class WP_PoliGastro_Widget_Calendar extends WP_Widget {
function WP_PoliGastro_Widget_Calendar() {
$widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A PoliGastro calendar of your site’s posts') );
$this->WP_Widget('pgcalendar', __('PGCalendar'), $widget_ops);
}
function widget( $args, $instance ) {
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title'], $instance, $this->id_base);
echo $before_widget;
if ( $title )
and then I kept the original code from the default-widgets.php
and at the end of the file, I included:
add_action('widgets_init', create_function('', 'return register_widget("WP_PoliGastro_Widget_Calendar");'));