get_posts returns invalid data when using category= parameter
|Reported by:||MichaelH||Owned by:||anonymous|
Take a new 2.3.1 install with this code:
$myposts = get_posts('category=2');
You would expect to get NO results, as an out-of-the-box install has no posts with category 2, but that code will return the "Hello World!" post.
Guessing this might be caused by get_posts not discerning between post categories and link categories (e.g. the link with link_id=1 in category 2 causes post with ID=1 to be returned).