[wp-trac] Re: [WordPress Trac] #4287: Links widget has duplicate ID
issue
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 10 14:58:34 GMT 2007
#4287: Links widget has duplicate ID issue
---------------------+------------------------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2.2
Component: General | Version: 2.2
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by docwhat):
Here's a stupid simple fix. Add this right before the call to
wp_list_bookmarks() in wp_widget_links():
{{{
#!php
$before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4287#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list