Use get_the_title() instead of $post->title

Use `get_the_title()` instead of `$post->title`, because there could be `'the_title'` filters