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 ) ) { -?> - - -
- -
-
-
-
-
-