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
This commit is contained in:
ryan 2008-04-17 20:32:13 +00:00
parent 66ad98c078
commit baba01caff
1 changed files with 2 additions and 0 deletions

View File

@ -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,