﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
12854,Link manager causes PHP warning,wet,nacin,"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.

",defect (bug),closed,normal,,Taxonomy,,normal,duplicate,,r.wetzlmayr@… matt@…
