From 8750c95b4a1ab58c1fc160dc119ed2b4bafdf8e8 Mon Sep 17 00:00:00 2001 From: duck_ Date: Wed, 21 Mar 2012 21:01:05 +0000 Subject: [PATCH] Remove dead code from the Links widget. Props pavelevap, SergeyBiryukov. Fixes #19179. The widget() method isn't called on the admin screen. git-svn-id: http://svn.automattic.com/wordpress/trunk@20245 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-widgets.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 4ac7938398..8a624363d5 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -106,12 +106,6 @@ class WP_Widget_Links extends WP_Widget { $order = $orderby == 'rating' ? 'DESC' : 'ASC'; $limit = isset( $instance['limit'] ) ? $instance['limit'] : -1; - if ( is_admin() && !$category ) { - // Display All Links widget as such in the widgets screen - echo $before_widget . $before_title . _x('All Links', 'links widget') . $after_title . $after_widget; - return; - } - $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget); wp_list_bookmarks(apply_filters('widget_links_args', array( 'title_before' => $before_title, 'title_after' => $after_title,