From 84b76f683291bc345dcbd8651a43c3c6c4b24d83 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 29 Aug 2007 17:36:46 +0000 Subject: [PATCH] Remove dead code. Fixed #4791 props filosofo git-svn-id: https://develop.svn.wordpress.org/trunk@5970 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index fba00f2a33..ae82078ae6 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -388,18 +388,12 @@ function wp_widget_pages_control() { } function wp_widget_links($args) { - global $wp_db_version; extract($args, EXTR_SKIP); - if ( $wp_db_version < 3582 ) { - // This ONLY works with li/h2 sidebars. - get_links_list(); - } else { - wp_list_bookmarks(array( - 'title_before' => $before_title, 'title_after' => $after_title, - 'category_before' => $before_widget, 'category_after' => $after_widget, - 'show_images' => true, 'class' => 'linkcat widget' - )); - } + wp_list_bookmarks(array( + 'title_before' => $before_title, 'title_after' => $after_title, + 'category_before' => $before_widget, 'category_after' => $after_widget, + 'show_images' => true, 'class' => 'linkcat widget' + )); } function wp_widget_search($args) {