Added a few comments.

This commit is contained in:
Ken Elf Mathieu Sternberg 2013-03-12 12:24:57 -07:00
parent 560a195cd4
commit fc48ad18fd
1 changed files with 5 additions and 0 deletions

View File

@ -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']);