From 5685b381a9f0c1d95fc0653242bda51da3ab34c6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 14 Mar 2009 17:25:59 +0000 Subject: [PATCH] Prune. see #8441 git-svn-id: https://develop.svn.wordpress.org/trunk@10786 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 82 ----------------------------------------- 1 file changed, 82 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 8a77d01080..432a0039f9 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -926,85 +926,6 @@ function wp_convert_widget_settings($base_name, $option_name, $settings) { /* Default Widgets */ -/** - * Display pages widget. - * - * @since 2.2.0 - * - * @param array $args Widget arguments. - */ -function wp_widget_pages( $args ) { - extract( $args ); - $options = get_option( 'widget_pages' ); - - $title = empty( $options['title'] ) ? __( 'Pages' ) : apply_filters('widget_title', $options['title']); - $sortby = empty( $options['sortby'] ) ? 'menu_order' : $options['sortby']; - $exclude = empty( $options['exclude'] ) ? '' : $options['exclude']; - - if ( $sortby == 'menu_order' ) { - $sortby = 'menu_order, post_title'; - } - - $out = wp_list_pages( array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) ); - - if ( !empty( $out ) ) { -?> - - - - - -

-

- -

-

- -
- -

- - 'widget_pages', 'description' => __( "Your blog's WordPress Pages") ); - //wp_register_sidebar_widget('pages', __('Pages'), 'wp_widget_pages', $widget_ops); - //wp_register_widget_control('pages', __('Pages'), 'wp_widget_pages_control' ); new WP_Widget_Pages(); $widget_ops = array('classname' => 'widget_calendar', 'description' => __( "A calendar of your blog's posts") );