From a2b71e7fae595032902a1106faea28ef8cbbedb2 Mon Sep 17 00:00:00 2001
From: Andrew Nacin
Date: Sun, 16 Sep 2012 16:51:12 +0000
Subject: [PATCH] Use selected() in default widgets. props SergeyBiryukov,
iamfriendly. fixes #21451.
git-svn-id: http://core.svn.wordpress.org/trunk@21867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-includes/default-widgets.php | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php
index bf6f8f5240..ac91849dac 100644
--- a/wp-includes/default-widgets.php
+++ b/wp-includes/default-widgets.php
@@ -150,8 +150,8 @@ class WP_Widget_Links extends WP_Widget {
term_id) . '"'
- . ( $link_cat->term_id == $instance['category'] ? ' selected="selected"' : '' )
+ echo '\n";
}
?>
@@ -935,7 +935,7 @@ function wp_widget_rss_form( $args, $inputs = null ) {
@@ -1130,8 +1130,9 @@ class WP_Widget_Tag_Cloud extends WP_Widget {