diff --git a/illustrated-recent-posts-widget.php b/illustrated-recent-posts-widget.php index b79fd0e..c4334d4 100644 --- a/illustrated-recent-posts-widget.php +++ b/illustrated-recent-posts-widget.php @@ -24,7 +24,9 @@ class Illustrated_Recent_Posts_Widget extends WP_Widget { function __construct() { $widget_ops = array( + /* classname embedded in parent wrapper */ 'classname' => 'widget_recent_entries', + /* description as it appears in admin */ 'description' => __('Display a list of recent post entries with a specific illustration.')); @@ -87,6 +89,9 @@ class Illustrated_Recent_Posts_Widget extends WP_Widget { echo $after_widget; } + /* Details that need to be saved from the admin form for a specific + * instance in a specific sidebar. */ + function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']);