Notice: Undefined offset: 0 in link-manager.php
|Reported by:||ShaneF||Owned by:|
I was working on a new WordPress design and I set the very first post to Jan, 1, 2010, 12:00am and when previewing the file I got this error:
Notice: Undefined offset: 0 in /home/xxxx/public_html/wordpress/wp-includes/link-template.php on line 1117
$post = $posts;
is still being set even if $posts might be empty. Moving the check to see if $posts is empty instead of $post fixes the issue nicely.