Make link widget IDs unique. Props docwhat. fixes #4287 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@7724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-17 20:32:13 +00:00
parent 228eab4870
commit 3199d65079
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,