From baba01caffbce746d90ef0774948bc1888471ef9 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 17 Apr 2008 20:32:13 +0000 Subject: [PATCH] Make link widget IDs unique. Props docwhat. fixes #4287 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7724 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/widgets.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index bed87a928a..7ed15e2ac2 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -428,6 +428,8 @@ function wp_widget_pages_control() { function wp_widget_links($args) { extract($args, EXTR_SKIP); + + $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget); wp_list_bookmarks(array( 'title_before' => $before_title, 'title_after' => $after_title, 'category_before' => $before_widget, 'category_after' => $after_widget,