From 98ecb6c9f5636bf38ba5a7ab5a7a88ffe848aee0 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 17 Mar 2009 02:41:28 +0000 Subject: [PATCH] Move calendar widget to WP_Widget. see #8441 git-svn-id: http://svn.automattic.com/wordpress/trunk@10800 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9f2b24a46..b7ca7538c 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']); -?> -

- -