[wp-trac] [WordPress Trac] #12854: Link manager causes PHP warning
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 5 09:56:54 UTC 2010
#12854: Link manager causes PHP warning
--------------------------+-------------------------------------------------
Reporter: wet | Owner: filosofo
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Taxonomy | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Symptom:
Link manager throws a PHP warning.
Steps to reproduce:
1. Install WP 3.0-beta
2. Enter the dashboard
3. Go to "Links"
4. Receive one warning per link stating "Warning: array_map() [function
.array-map]: Argument # 2 should be an array in /.../wp-
includes/bookmark.php [http://core.trac.wordpress.org/browser/trunk/wp-
includes/bookmark.php?rev=13093#L316 on line 316]"
Possible cause:
sanitize_bookmark() wrongly assumes 'link_category' to be an
[http://core.trac.wordpress.org/browser/trunk/wp-
includes/bookmark.php?rev=13093#L314 array] while actually it is
[http://core.trac.wordpress.org/browser/trunk/wp-
includes/bookmark.php?rev=13093#L234 read as a integer] from $wpdb->links.
Possible root cause:
Apparently, get_bookmarks() does not populate the 'link_category' member
from the taxonomy table like get_bookmark()
[http://core.trac.wordpress.org/browser/trunk/wp-
includes/bookmark.php?rev=13093#L36 does]. This might be unintentional.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12854>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list