From 88cc08d1937ecc2a5e1203fde16c2a7071d93105 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 17 Mar 2009 02:41:28 +0000 Subject: [PATCH] Move calendar widget to WP_Widget. see #8441 git-svn-id: https://develop.svn.wordpress.org/trunk@10800 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/default-widgets.php | 40 --------------------------------- 1 file changed, 40 deletions(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 9f2b24a46a..b7ca7538c2 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -294,46 +294,6 @@ class WP_Widget_Meta extends WP_Widget { } } -/** - * Display calendar widget. - * - * @since 2.2.0 - * - * @param array $args Widget arguments. - */ -function wp_widget_calendar($args) { - extract($args); - $options = get_option('widget_calendar'); - $title = apply_filters('widget_title', $options['title']); - if ( empty($title) ) - $title = ' '; - echo $before_widget . $before_title . $title . $after_title; - echo '
'; - get_calendar(); - echo '
'; - echo $after_widget; -} - -/** - * Display and process calendar widget options form. - * - * @since 2.2.0 - */ -function wp_widget_calendar_control() { - $options = $newoptions = get_option('widget_calendar'); - if ( isset($_POST["calendar-submit"]) ) { - $newoptions['title'] = strip_tags(stripslashes($_POST["calendar-title"])); - } - if ( $options != $newoptions ) { - $options = $newoptions; - update_option('widget_calendar', $options); - } - $title = attribute_escape($options['title']); -?> -

- -