Use get_the_title() instead of $post->title, because there could be 'the_title' filters
Merge pull request #3823 from tivnet/master

Use get_the_title() instead of $post->title