Notice when requesting post title of non-existent post
|Reported by:||filosofo||Owned by:||ryan|
|Severity:||normal||Keywords:||has-patch get_the_title tested|
If you try to get the post title using get_the_title(123), where 123 is not an existing post's ID, you get two notices because get_the_title() tries to access non-existent properties of NULL.
What exacerbates the problem is that the ID passed to the "the_title" filter is based on the (non-existent) ID property of the supposed post object. So filter callbacks can't fully deal with non-existent post title requests, as they do not get the requested ID.