From 1563fce7ff11c18142aefb220e18ada76baeb1a6 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: https://develop.svn.wordpress.org/trunk@21867 602fd350-edb4-49c9-b593-d223f7449a82
---
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 {