Added a few comments.
This commit is contained in:
parent
560a195cd4
commit
fc48ad18fd
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue