[Code Review] An array should not be directly put into a string
|Reported by:||kamiyeye||Owned by:|
In latest wordpress 2.8 nightly build, file wp-includes/link-template.php, function get_boundary_post, from line 1037 to 1041
$categories = array_merge($cat_array, $excluded_categories); $order = $start ? 'ASC' : 'DESC'; return get_posts("numberposts=1&order=$order&orderby=ID&category=$categories");
As you see, $categories is an array, it should not be used in this way, which will cause a string "Array" in php, am i right?
I noticed these codes are part of 2.8 new feature "display adjacent relational links in the head" - Ticket #8703, thus determine Severity to be major. If it doesn't meet your bug evaluation principle, feel free to point it.
Change History (5)
- Keywords needs-patch added
- Severity changed from major to blocker